Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! fixup! process: reduce the number of internal frames in async …
…stack trace
  • Loading branch information
joyeecheung committed Apr 25, 2019
commit c354c2cea5123dfac05c65276f24f9cf17e00167
11 changes: 7 additions & 4 deletions test/message/async_error_eval_cjs.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
'use strict';

require('../common');
const fixtures = require('../common/fixtures');
const errorModule = fixtures.path('async-error.js');
const { spawnSync } = require('child_process');

const main = `'use strict';
const four = require('../common/fixtures')
.readSync('async-error.js')
.toString()
.split('\n')
.slice(2, -2)
.join('\n');

const four = require('${errorModule}');
const main = `${four}

async function main() {
try {
Expand Down
10 changes: 5 additions & 5 deletions test/message/async_error_eval_cjs.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Error: test
at one (*fixtures*async-error.js:4:9)
at two (*fixtures*async-error.js:17:9)
at async three (*fixtures*async-error.js:20:3)
at async four (*fixtures*async-error.js:24:3)
at async main ([eval]:7:5)
at one ([eval]:2:9)
at two ([eval]:15:9)
at async three ([eval]:18:3)
at async four ([eval]:22:3)
at async main ([eval]:28:5)