Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21be4b1 commit 0a068dbCopy full SHA for 0a068db
βtest/fixtures/source-map/emptyStackError.jsβ
@@ -0,0 +1,6 @@
1
+"use strict";
2
+
3
+Error.stackTraceLimit = 0;
4
+throw new RangeError('emptyStackError');
5
6
βtest/parallel/test-source-map.jsβ
@@ -255,6 +255,18 @@ function nextdir() {
255
}
256
257
258
+// trace.length === 0 .
259
+{
260
+ const output = spawnSync(process.execPath, [
261
+ '--enable-source-maps',
262
+ require.resolve('../fixtures/source-map/emptyStackError.js')
263
+ ]);
264
265
+ assert.ok(
266
+ output.stderr.toString().match('emptyStackError')
267
+ );
268
+}
269
270
function getSourceMapFromCache(fixtureFile, coverageDirectory) {
271
const jsonFiles = fs.readdirSync(coverageDirectory);
272
for (const jsonFile of jsonFiles) {
0 commit comments