| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + "use strict"; | ||
| 2 | + | ||
| 3 | + Error.stackTraceLimit = 0; | ||
| 4 | + throw new RangeError('emptyStackError'); | ||
| 5 | + | ||
| 6 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,6 +255,18 @@ function nextdir() { | |||
| 255 | 255 | } | |
| 256 | 256 | } | |
| 257 | 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 | + | ||
| 258 | 270 | function getSourceMapFromCache(fixtureFile, coverageDirectory) { | |
| 259 | 271 | const jsonFiles = fs.readdirSync(coverageDirectory); | |
| 260 | 272 | for (const jsonFile of jsonFiles) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments