Basic directory analysis.
This commit is contained in:
16
test-sourcemap.js
Normal file
16
test-sourcemap.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// Simple test to verify source maps are working
|
||||
import "source-map-support/register";
|
||||
|
||||
console.log("Testing source map support...");
|
||||
|
||||
function testError() {
|
||||
// Force an error on a specific line
|
||||
const obj = null;
|
||||
console.log(obj.someProperty); // This will throw an error on this line
|
||||
}
|
||||
|
||||
try {
|
||||
testError();
|
||||
} catch (error) {
|
||||
console.log("Error caught:", error.stack);
|
||||
}
|
||||
Reference in New Issue
Block a user