diff options
| author | Kamil Ogórek <kamil.ogorek@gmail.com> | 2023-02-09 01:11:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-08 19:11:12 -0500 |
| commit | ef9b66950f4557003bc7d4246da838545466a518 (patch) | |
| tree | 8ee23827a7659d98480a369b4e1d3bf990d63b01 /cli/tests/testdata/npm/registry | |
| parent | 286e5d0be9bb11a69d55f0eedd4a6678b0d48e7d (diff) | |
fix: use static Reflect methods in nodeGlobalThis proxy (#17696)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/tests/testdata/npm/registry')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.js | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts b/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts index ee03712dd..3f3eeb92a 100644 --- a/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts +++ b/cli/tests/testdata/npm/registry/@denotest/globals/1.0.0/index.d.ts @@ -11,3 +11,5 @@ type AssertTrue<T extends true> = never; type _TestHasProcessGlobal = AssertTrue< typeof globalThis extends { process: any } ? true : false >; + +export function withNodeGlobalThis(action: (global: typeof globalThis) => void): void; 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); +}; |
