Skip to content

Commit 38df653

Browse files
papandreouGolmote
authored andcommitted
Fix passing of non-enumerable Error properties from the child test runner (#1276)
1 parent b08cae5 commit 38df653

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/run-child.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ if (argv.language) {
1515
}
1616
process.send({success: true});
1717
} catch (e) {
18-
process.send({error: JSON.stringify(e)});
18+
process.send({error: JSON.stringify({
19+
message: e.message,
20+
stack: e.stack
21+
})});
1922
}
2023
}
2124
});

0 commit comments

Comments
 (0)