diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-01-17 23:23:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 23:23:49 +0100 |
commit | bc666e42a89f2f6ab104e5f1c1298ec590a99ce9 (patch) | |
tree | 3c2873e350e73b229182fffe1102d7779cac22ac /cli/tests | |
parent | 1ab5dea367800defa264b633705f8b535bb167d9 (diff) |
fix(ext/console): don't depend on globalThis present (#13387)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 5 | ||||
-rw-r--r-- | cli/tests/testdata/colors_without_globalThis.js | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index bc137a7fd..2f32fd67f 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2479,3 +2479,8 @@ itest!(import_assertions_type_check { output: "import_assertions/type_check.out", exit_code: 1, }); + +itest!(colors_without_global_this { + args: "run colors_without_globalThis.js", + output_str: Some("true\n"), +}); diff --git a/cli/tests/testdata/colors_without_globalThis.js b/cli/tests/testdata/colors_without_globalThis.js new file mode 100644 index 000000000..f9d4b68fc --- /dev/null +++ b/cli/tests/testdata/colors_without_globalThis.js @@ -0,0 +1 @@ +console.log(delete globalThis.globalThis); |