diff options
author | ud2 <sjx233@qq.com> | 2023-12-08 00:04:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 21:34:44 +0530 |
commit | 3f96e5a29a88afafcef0f17458b2800b2db316ee (patch) | |
tree | a39b25f88749eae6a2e6ccc8f9ee9f1dee18ef96 /cli/tests | |
parent | c1fc7b2cd511ce83566f696c8880d6718e5c6885 (diff) |
fix(ext/node): include non-enumerable keys in `Reflect.ownKeys(globalThis)` (#21485)
Closes #21484.
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/testdata/npm/compare_globals/main.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/npm/compare_globals/main.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/compare_globals/main.out b/cli/tests/testdata/npm/compare_globals/main.out index 31fcedda3..0e366fae7 100644 --- a/cli/tests/testdata/npm/compare_globals/main.out +++ b/cli/tests/testdata/npm/compare_globals/main.out @@ -25,3 +25,4 @@ false false bar bar +true diff --git a/cli/tests/testdata/npm/compare_globals/main.ts b/cli/tests/testdata/npm/compare_globals/main.ts index 8d3ae1ea0..6f7b9ef8e 100644 --- a/cli/tests/testdata/npm/compare_globals/main.ts +++ b/cli/tests/testdata/npm/compare_globals/main.ts @@ -48,3 +48,5 @@ globals.checkWindowGlobal(); (globalThis as any).foo = "bar"; console.log((globalThis as any).foo); console.log(globals.getFoo()); + +console.log(Reflect.ownKeys(globalThis).includes("console")); // non-enumerable keys are included |