mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
d6e626d54c
PR-URL: https://github.com/nodejs/node/pull/44197 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Michaël Zasso <targos@protonmail.com>
26 lines
490 B
JavaScript
26 lines
490 B
JavaScript
// Flags: --enable-source-maps
|
|
|
|
'use strict';
|
|
require('../common');
|
|
Error.stackTraceLimit = 5;
|
|
|
|
process.setSourceMapsEnabled(false);
|
|
|
|
try {
|
|
require('../fixtures/source-map/enclosing-call-site-min.js');
|
|
} catch (e) {
|
|
console.log(e);
|
|
}
|
|
|
|
delete require.cache[require
|
|
.resolve('../fixtures/source-map/enclosing-call-site-min.js')];
|
|
|
|
// Re-enable.
|
|
process.setSourceMapsEnabled(true);
|
|
|
|
try {
|
|
require('../fixtures/source-map/enclosing-call-site-min.js');
|
|
} catch (e) {
|
|
console.log(e);
|
|
}
|