1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

test: add test for DENO_FUTURE=1 runtime API (#23065)

Add a test that asserts that certain symbols are no longer available
if running with `DENO_FUTURE=1` env var.

Currently only checks `window` global.
This commit is contained in:
Bartek Iwańczuk 2024-03-25 15:22:01 +00:00 committed by GitHub
parent 64e8c36805
commit 8b454b560a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{
"args": "run main.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
}

View file

@ -0,0 +1 @@
console.log("window is", globalThis.window);

View file

@ -0,0 +1 @@
window is undefined