summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-14 23:57:31 -0400
committerGitHub <noreply@github.com>2024-10-15 03:57:31 +0000
commitae6a2b23bae83795bd973414216a89c839dd8fda (patch)
tree648bc0f65e9fa41de5f75188f87473d37912f291 /tests/testdata
parent7f3747f2ef7cc9e1d45aa33360afdfe62cd20c56 (diff)
fix: do not panic running remote cjs module (#26259)
Instead error.
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/run/add.cjs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testdata/run/add.cjs b/tests/testdata/run/add.cjs
new file mode 100644
index 000000000..2a886fbc1
--- /dev/null
+++ b/tests/testdata/run/add.cjs
@@ -0,0 +1,3 @@
+module.exports.add = function (a, b) {
+ return a + b;
+};