summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js
index 50d2d3d2a..daac83c66 100644
--- a/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js
+++ b/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js
@@ -1,3 +1,7 @@
exports.globalThis = globalThis;
exports.global = global;
exports.process = process;
+
+exports.withNodeGlobalThis = function (action) {
+ action(globalThis);
+};