We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 017280e commit 01e0571Copy full SHA for 01e0571
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
@@ -253,6 +253,18 @@ function nextdir() {
253
}
254
255
256
+// trace.length === 0 .
257
+{
258
+ const output = spawnSync(process.execPath, [
259
+ '--enable-source-maps',
260
+ require.resolve('../fixtures/source-map/emptyStackError.js')
261
+ ]);
262
263
+ assert.ok(
264
+ output.stderr.toString().match('emptyStackError')
265
+ );
266
+}
267
268
function getSourceMapFromCache(fixtureFile, coverageDirectory) {
269
const jsonFiles = fs.readdirSync(coverageDirectory);
270
for (const jsonFile of jsonFiles) {
0 commit comments