13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
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);
|
|
} |