| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,14 @@ export default [ | |||
| 62 | 62 | '!test/fixtures/console', | |
| 63 | 63 | '!test/fixtures/errors', | |
| 64 | 64 | '!test/fixtures/eval', | |
| 65 | + '!test/fixtures/source-map', | ||
| 66 | + 'test/fixtures/source-map/*', | ||
| 67 | + '!test/fixtures/source-map/output', | ||
| 68 | + ...filterFilesInDir( | ||
| 69 | + 'test/fixtures/source-map/output', | ||
| 70 | + // Filtering tsc output files (i.e. if there a foo.ts, we ignore foo.js): | ||
| 71 | + (f, _, files) => f.endsWith('js') && files.includes(f.replace(/(\.[cm]?)js$/, '$1ts')), | ||
| 72 | + ), | ||
| 65 | 73 | '!test/fixtures/test-runner', | |
| 66 | 74 | 'test/fixtures/test-runner/*', | |
| 67 | 75 | '!test/fixtures/test-runner/output', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,4 +45,4 @@ try { | |||
| 45 | 45 | require('../node_modules/error-stack/enclosing-call-site-min.js').simpleErrorStack(); | |
| 46 | 46 | } catch (e) { | |
| 47 | 47 | console.log(e); | |
| 48 | - } | ||
| 48 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ Error.stackTraceLimit = 5; | |||
| 9 | 9 | assert.strictEqual(typeof Error.prepareStackTrace, 'function'); | |
| 10 | 10 | const defaultPrepareStackTrace = Error.prepareStackTrace; | |
| 11 | 11 | Error.prepareStackTrace = (error, trace) => { | |
| 12 | - trace = trace.filter(it => { | ||
| 12 | + trace = trace.filter((it) => { | ||
| 13 | 13 | return it.getFunctionName() !== 'functionC'; | |
| 14 | 14 | }); | |
| 15 | 15 | return defaultPrepareStackTrace(error, trace); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments