Files
tsgo/testdata/baselines/reference/submodule/conformance/globalThisPropertyAssignment.symbols
2025-02-26 14:53:49 -08:00

18 lines
450 B
Plaintext

//// [tests/cases/conformance/es2019/globalThisPropertyAssignment.ts] ////
=== globalThisPropertyAssignment.js ===
this.x = 1
>this : Symbol(globalThis)
var y = 2
>y : Symbol(y, Decl(globalThisPropertyAssignment.js, 1, 3))
// should work in JS
window.z = 3
>window : Symbol(window, Decl(lib.dom.d.ts, --, --))
// should work in JS (even though it's a secondary declaration)
globalThis.alpha = 4
>globalThis : Symbol(globalThis)