From 8c1c929034d46101b6a51ec5cf5e2f307ed0c271 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Thu, 19 Mar 2020 16:42:07 +0200 Subject: fix: stack traces for modules imported via std/node's require (#4035) --- std/node/tests/cjs/cjs_throw.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 std/node/tests/cjs/cjs_throw.js (limited to 'std/node/tests/cjs') diff --git a/std/node/tests/cjs/cjs_throw.js b/std/node/tests/cjs/cjs_throw.js new file mode 100644 index 000000000..a636f406b --- /dev/null +++ b/std/node/tests/cjs/cjs_throw.js @@ -0,0 +1,5 @@ +function hello() { + throw new Error("bye"); +} + +module.exports = { hello }; -- cgit v1.2.3