summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/globals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/compat/globals.ts')
-rw-r--r--cli/tests/testdata/compat/globals.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/testdata/compat/globals.ts b/cli/tests/testdata/compat/globals.ts
new file mode 100644
index 000000000..39a555cbf
--- /dev/null
+++ b/cli/tests/testdata/compat/globals.ts
@@ -0,0 +1,8 @@
+if (global != window) {
+ throw new Error("global is not equal to window");
+}
+
+console.log(process);
+console.log(Buffer);
+console.log(setImmediate);
+console.log(clearImmediate);