Lines Matching refs:global
24 const process = global.process; // Some tests tamper with the process global.
282 global,
292 // all supported versions have AbortController as a global, this
295 if (global.AbortController)
296 knownGlobals.push(global.AbortController);
298 if (global.gc) {
299 knownGlobals.push(global.gc);
302 if (global.Performance) {
303 knownGlobals.push(global.Performance);
305 if (global.performance) {
306 knownGlobals.push(global.performance);
308 if (global.PerformanceMark) {
309 knownGlobals.push(global.PerformanceMark);
311 if (global.PerformanceMeasure) {
312 knownGlobals.push(global.PerformanceMeasure);
318 if (global.structuredClone) {
319 knownGlobals.push(global.structuredClone);
322 if (global.fetch) {
325 if (hasCrypto && global.crypto) {
326 knownGlobals.push(global.crypto);
327 knownGlobals.push(global.Crypto);
328 knownGlobals.push(global.CryptoKey);
329 knownGlobals.push(global.SubtleCrypto);
331 if (global.CustomEvent) {
332 knownGlobals.push(global.CustomEvent);
334 if (global.ReadableStream) {
336 global.ReadableStream,
337 global.ReadableStreamDefaultReader,
338 global.ReadableStreamBYOBReader,
339 global.ReadableStreamBYOBRequest,
340 global.ReadableByteStreamController,
341 global.ReadableStreamDefaultController,
342 global.TransformStream,
343 global.TransformStreamDefaultController,
344 global.WritableStream,
345 global.WritableStreamDefaultWriter,
346 global.WritableStreamDefaultController,
347 global.ByteLengthQueuingStrategy,
348 global.CountQueuingStrategy,
349 global.TextEncoderStream,
350 global.TextDecoderStream,
351 global.CompressionStream,
352 global.DecompressionStream,
369 for (const val in global) {
370 if (!knownGlobals.includes(global[val])) {
381 assert.fail(`Unexpected global(s) found: ${leaked.join(', ')}`);
830 global.gc();