summaryrefslogtreecommitdiff
path: root/std/node/tests/cjs/cjs_throw.js
diff options
context:
space:
mode:
authorNikolai Vavilov <vvnicholas@gmail.com>2020-03-19 16:42:07 +0200
committerGitHub <noreply@github.com>2020-03-19 10:42:07 -0400
commit8c1c929034d46101b6a51ec5cf5e2f307ed0c271 (patch)
treee86383fb34829d991121fc3203595d7e77327779 /std/node/tests/cjs/cjs_throw.js
parent74c37e759ac03267975309c1425223289ebc925f (diff)
fix: stack traces for modules imported via std/node's require (#4035)
Diffstat (limited to 'std/node/tests/cjs/cjs_throw.js')
-rw-r--r--std/node/tests/cjs/cjs_throw.js5
1 files changed, 5 insertions, 0 deletions
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 };