mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
e6018e2864
Prior to this change `sourceMappingURL` in string where being matched by the RegExp which caused sourcemaps not be loaded when using the `--enable-source-maps` flag. This commit changes the RegExp to match the last occurrence. Fixes: https://github.com/nodejs/node/issues/44654 PR-URL: https://github.com/nodejs/node/pull/44658 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
14 lines
248 B
JavaScript
14 lines
248 B
JavaScript
// Flags: --enable-source-maps
|
|
|
|
'use strict';
|
|
require('../common');
|
|
Error.stackTraceLimit = 2;
|
|
|
|
try {
|
|
require('../fixtures/source-map/typescript-sourcemapping_url_string');
|
|
} catch (err) {
|
|
setTimeout(() => {
|
|
console.info(err);
|
|
}, 10);
|
|
}
|