Searched refs:globalThis (Results 1 – 25 of 381) sorted by relevance
12345678910>>...16
/third_party/node/lib/internal/bootstrap/ |
D | browser.js | 5 globalThis, 16 exposeNamespace(globalThis, 'console', 21 exposeInterface(globalThis, 'URL', URL); 23 exposeInterface(globalThis, 'URLSearchParams', URLSearchParams); 24 exposeGetterAndSetter(globalThis, 28 exposeInterface(globalThis, 'DOMException', value); 36 exposeInterface(globalThis, 'TextEncoder', TextEncoder); 38 exposeInterface(globalThis, 'TextDecoder', TextDecoder); 44 exposeInterface(globalThis, 'AbortController', AbortController); 45 exposeInterface(globalThis, 'AbortSignal', AbortSignal); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | globalThisBlockscopedProperties.symbols | 11 globalThis.x // ok 12 >globalThis.x : Symbol(x, Decl(globalThisBlockscopedProperties.ts, 0, 3)) 13 >globalThis : Symbol(globalThis) 16 globalThis.y // should error, no property 'y' 17 >globalThis : Symbol(globalThis) 19 globalThis.z // should error, no property 'z' 20 >globalThis : Symbol(globalThis) 22 globalThis['x'] // ok 23 >globalThis : Symbol(globalThis) 26 globalThis['y'] // should error, no property 'y' [all …]
|
D | globalThisBlockscopedProperties.js | 5 globalThis.x // ok 6 globalThis.y // should error, no property 'y' 7 globalThis.z // should error, no property 'z' 8 globalThis['x'] // ok 9 globalThis['y'] // should error, no property 'y' 10 globalThis['z'] // should error, no property 'z' 11 globalThis.Float64Array // ok 12 globalThis.Infinity // ok 14 declare let test1: (typeof globalThis)['x'] // ok 15 declare let test2: (typeof globalThis)['y'] // error [all …]
|
D | globalThisVarDeclaration.types | 8 >this : typeof globalThis 13 >this : typeof globalThis 16 globalThis.a; 17 >globalThis.a : number 18 >globalThis : typeof globalThis 21 globalThis.b; 22 >globalThis.b : number 23 >globalThis : typeof globalThis 29 >self : Window & typeof globalThis 34 >self : Window & typeof globalThis [all …]
|
D | globalThisReadonlyProperties.types | 2 globalThis.globalThis = 1 as any // should error 3 >globalThis.globalThis = 1 as any : any 4 >globalThis.globalThis : any 5 >globalThis : typeof globalThis 6 >globalThis : any 18 globalThis.x = 3 19 >globalThis.x = 3 : 3 20 >globalThis.x : number 21 >globalThis : typeof globalThis 25 globalThis.y = 4 // should error [all …]
|
D | globalThisReadonlyProperties.symbols | 2 globalThis.globalThis = 1 as any // should error 3 >globalThis.globalThis : Symbol(globalThis) 4 >globalThis : Symbol(globalThis) 5 >globalThis : Symbol(globalThis) 13 globalThis.x = 3 14 >globalThis.x : Symbol(x, Decl(globalThisReadonlyProperties.ts, 1, 3)) 15 >globalThis : Symbol(globalThis) 18 globalThis.y = 4 // should error 19 >globalThis : Symbol(globalThis)
|
D | globalThisBlockscopedProperties.errors.txt | 1 …ckscopedProperties.ts(5,12): error TS2339: Property 'y' does not exist on type 'typeof globalThis'. 2 …ckscopedProperties.ts(6,12): error TS2339: Property 'z' does not exist on type 'typeof globalThis'. 3 …ockscopedProperties.ts(8,1): error TS2339: Property 'y' does not exist on type 'typeof globalThis'. 4 …ockscopedProperties.ts(9,1): error TS2339: Property 'z' does not exist on type 'typeof globalThis'. 5 …kscopedProperties.ts(14,40): error TS2339: Property 'y' does not exist on type 'typeof globalThis'. 6 …kscopedProperties.ts(15,40): error TS2339: Property 'z' does not exist on type 'typeof globalThis'. 13 globalThis.x // ok 14 globalThis.y // should error, no property 'y' 16 !!! error TS2339: Property 'y' does not exist on type 'typeof globalThis'. 17 globalThis.z // should error, no property 'z' [all …]
|
D | globalThisUnknownNoImplicitAny.types | 2 declare let win: Window & typeof globalThis; 3 >win : Window & typeof globalThis 4 >globalThis : typeof globalThis 9 >win : Window & typeof globalThis 14 >this : typeof globalThis 17 globalThis.hi 18 >globalThis.hi : any 19 >globalThis : typeof globalThis 24 >win : Window & typeof globalThis 29 >this : typeof globalThis [all …]
|
D | globalThisUnknown.types | 2 declare let win: Window & typeof globalThis; 3 >win : Window & typeof globalThis 4 >globalThis : typeof globalThis 9 >win : Window & typeof globalThis 15 >this : typeof globalThis 18 globalThis.hi 19 >globalThis.hi : any 20 >globalThis : typeof globalThis 26 >win : Window & typeof globalThis 31 >this : typeof globalThis [all …]
|
D | extendGlobalThis.types | 5 namespace globalThis { 6 >globalThis : typeof globalThis 18 globalThis.tests = "a-b"; 19 >globalThis.tests = "a-b" : "a-b" 20 >globalThis.tests : any 21 >globalThis : typeof globalThis 25 console.log(globalThis.test.split("-")); 26 >console.log(globalThis.test.split("-")) : void 30 >globalThis.test.split("-") : string[] 31 >globalThis.test.split : (separator: string | RegExp, limit?: number) => string[] [all …]
|
D | globalThisBlockscopedProperties.types | 14 globalThis.x // ok 15 >globalThis.x : number 16 >globalThis : typeof globalThis 19 globalThis.y // should error, no property 'y' 20 >globalThis.y : any 21 >globalThis : typeof globalThis 24 globalThis.z // should error, no property 'z' 25 >globalThis.z : any 26 >globalThis : typeof globalThis 29 globalThis['x'] // ok [all …]
|
D | globalThisUnknownNoImplicitAny.symbols | 2 declare let win: Window & typeof globalThis; 5 >globalThis : Symbol(globalThis) 12 >this : Symbol(globalThis) 14 globalThis.hi 15 >globalThis : Symbol(globalThis) 21 >this : Symbol(globalThis) 23 globalThis['hi'] 24 >globalThis : Symbol(globalThis)
|
D | globalThisVarDeclaration.symbols | 7 >this : Symbol(globalThis) 12 >this : Symbol(globalThis) 15 globalThis.a; 16 >globalThis.a : Symbol(a, Decl(b.js, 0, 3)) 17 >globalThis : Symbol(globalThis) 20 globalThis.b; 21 >globalThis.b : Symbol(b, Decl(actual.ts, 0, 3)) 22 >globalThis : Symbol(globalThis) 58 >this : Symbol(globalThis) 63 >this : Symbol(globalThis) [all …]
|
D | globalThisAmbientModules.types | 20 type GlobalBad1 = (typeof globalThis)["\"ambientModule\""] 22 >globalThis : typeof globalThis 24 type GlobalOk1 = (typeof globalThis)["valueModule"] 26 >globalThis : typeof globalThis 28 type GlobalOk2 = globalThis.namespaceModule.typ 30 >globalThis : any 33 const bad1: (typeof globalThis)["\"ambientModule\""] = 'ambientModule' 35 >globalThis : typeof globalThis
|
D | globalThisUnknown.symbols | 2 declare let win: Window & typeof globalThis; 5 >globalThis : Symbol(globalThis) 13 >this : Symbol(globalThis) 15 globalThis.hi 16 >globalThis : Symbol(globalThis) 23 >this : Symbol(globalThis) 25 globalThis['hi'] 26 >globalThis : Symbol(globalThis)
|
D | globalThisUnknownNoImplicitAny.errors.txt | 1 …plicitAny.ts(4,5): error TS2339: Property 'hi' does not exist on type 'Window & typeof globalThis'. 2 …rror TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index si… 3 …rror TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index si… 5 …as an 'any' type because expression of type '"hi"' can't be used to index type 'typeof globalThis'. 6 Property 'hi' does not exist on type 'typeof globalThis'. 7 …as an 'any' type because expression of type '"hi"' can't be used to index type 'typeof globalThis'. 8 Property 'hi' does not exist on type 'typeof globalThis'. 12 declare let win: Window & typeof globalThis; 17 !!! error TS2339: Property 'hi' does not exist on type 'Window & typeof globalThis'. 20 !!! error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no inde… [all …]
|
D | globalThisDeclarationEmit.types | 3 >variable : typeof globalThis 5 export const globalThis = variable; 6 >globalThis : typeof globalThis 7 >variable : typeof globalThis 10 export const variable = globalThis; 11 >variable : typeof globalThis 12 >globalThis : typeof globalThis
|
D | globalThisDeclarationEmit2.types | 3 >variable : typeof globalThis 5 export { variable as globalThis }; 6 >variable : typeof globalThis 7 >globalThis : typeof globalThis 10 export const variable = globalThis; 11 >variable : typeof globalThis 12 >globalThis : typeof globalThis
|
D | globalThisAmbientModules.symbols | 21 type GlobalBad1 = (typeof globalThis)["\"ambientModule\""] 23 >globalThis : Symbol(globalThis) 25 type GlobalOk1 = (typeof globalThis)["valueModule"] 27 >globalThis : Symbol(globalThis) 29 type GlobalOk2 = globalThis.namespaceModule.typ 31 >globalThis : Symbol(globalThis) 35 const bad1: (typeof globalThis)["\"ambientModule\""] = 'ambientModule' 37 >globalThis : Symbol(globalThis)
|
D | extendGlobalThis.symbols | 5 namespace globalThis { 6 >globalThis : Symbol(globalThis, Decl(extension.d.ts, 0, 16)) 18 globalThis.tests = "a-b"; 19 >globalThis : Symbol(globalThis, Decl(extension.d.ts, 0, 16)) 21 console.log(globalThis.test.split("-")); 25 >globalThis.test.split : Symbol(String.split, Decl(lib.es5.d.ts, --, --)) 26 >globalThis.test : Symbol(test, Decl(extension.d.ts, 2, 11)) 27 >globalThis : Symbol(globalThis, Decl(extension.d.ts, 0, 16))
|
D | globalThisReadonlyProperties.js | 2 globalThis.globalThis = 1 as any // should error 5 globalThis.x = 3 6 globalThis.y = 4 // should error 10 globalThis.globalThis = 1; // should error 13 globalThis.x = 3; 14 globalThis.y = 4; // should error
|
D | globalThisVarDeclaration.js | 7 globalThis.a; 8 globalThis.b; 22 globalThis.a; 23 globalThis.b; 39 globalThis.a; 40 globalThis.b; 51 globalThis.a; 52 globalThis.b;
|
/third_party/typescript/tests/cases/conformance/es2019/ |
D | globalThisBlockscopedProperties.ts | 5 globalThis.x // ok 6 globalThis.y // should error, no property 'y' 7 globalThis.z // should error, no property 'z' 8 globalThis['x'] // ok 9 globalThis['y'] // should error, no property 'y' 10 globalThis['z'] // should error, no property 'z' 11 globalThis.Float64Array // ok 12 globalThis.Infinity // ok 14 declare let test1: (typeof globalThis)['x'] // ok 15 declare let test2: (typeof globalThis)['y'] // error [all …]
|
/third_party/typescript/src/services/ |
D | globalThisShim.ts | 12 if (typeof globalThis === "object") return; 21 __magic__.globalThis = __magic__; 25 if (typeof globalThis === "undefined") { 28 window.globalThis = window; 37 window.globalThis = window; 48 globalThis.TypeScript = globalThis.TypeScript || {}; 50 globalThis.TypeScript.Services = globalThis.TypeScript.Services || {}; 52 globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory; 58 globalThis.toolsVersion = ts.versionMajorMinor;
|
/third_party/node/typings/ |
D | primordials.d.ts | 45 export import decodeURI = globalThis.decodeURI; 46 export import decodeURIComponent = globalThis.decodeURIComponent; 47 export import encodeURI = globalThis.encodeURI; 48 export import encodeURIComponent = globalThis.encodeURIComponent; 108 export import AggregateError = globalThis.AggregateError; 110 export import Array = globalThis.Array; 149 export import ArrayBuffer = globalThis.ArrayBuffer; 154 export import BigInt = globalThis.BigInt; 161 export import BigInt64Array = globalThis.BigInt64Array; 164 export import BigUint64Array = globalThis.BigUint64Array; [all …]
|
12345678910>>...16