Files
bodyshop-media-server/test-sourcemap.js
2025-11-06 15:15:32 -08:00

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);
}