@aurelia/platform
Advanced tools
Comparing version 0.8.0-dev.202011152229 to 0.8.0-dev.202011152346
@@ -20,2 +20,3 @@ const lookup = new Map(); | ||
this.Reflect = 'Reflect' in overrides ? overrides.Reflect : g.Reflect; | ||
this.Proxy = 'Proxy' in overrides ? overrides.Proxy : g.Proxy; | ||
this.clearInterval = 'clearInterval' in overrides ? overrides.clearInterval : (_b = (_a = g.clearInterval) === null || _a === void 0 ? void 0 : _a.bind(g)) !== null && _b !== void 0 ? _b : notImplemented('clearInterval'); | ||
@@ -22,0 +23,0 @@ this.clearTimeout = 'clearTimeout' in overrides ? overrides.clearTimeout : (_d = (_c = g.clearTimeout) === null || _c === void 0 ? void 0 : _c.bind(g)) !== null && _d !== void 0 ? _d : notImplemented('clearTimeout'); |
@@ -9,2 +9,3 @@ export declare class Platform<TGlobal extends typeof globalThis = typeof globalThis> { | ||
readonly Reflect: TGlobal['Reflect']; | ||
readonly Proxy: TGlobal['Proxy']; | ||
readonly clearInterval: TGlobal['clearInterval']; | ||
@@ -11,0 +12,0 @@ readonly clearTimeout: TGlobal['clearTimeout']; |
@@ -32,2 +32,3 @@ (function (factory) { | ||
this.Reflect = 'Reflect' in overrides ? overrides.Reflect : g.Reflect; | ||
this.Proxy = 'Proxy' in overrides ? overrides.Proxy : g.Proxy; | ||
this.clearInterval = 'clearInterval' in overrides ? overrides.clearInterval : (_b = (_a = g.clearInterval) === null || _a === void 0 ? void 0 : _a.bind(g)) !== null && _b !== void 0 ? _b : notImplemented('clearInterval'); | ||
@@ -34,0 +35,0 @@ this.clearTimeout = 'clearTimeout' in overrides ? overrides.clearTimeout : (_d = (_c = g.clearTimeout) === null || _c === void 0 ? void 0 : _c.bind(g)) !== null && _d !== void 0 ? _d : notImplemented('clearTimeout'); |
{ | ||
"name": "@aurelia/platform", | ||
"version": "0.8.0-dev.202011152229", | ||
"version": "0.8.0-dev.202011152346", | ||
"main": "dist/umd/index.js", | ||
@@ -39,3 +39,3 @@ "module": "dist/esnext/index.js", | ||
}, | ||
"gitHead": "d234da8b41b6d036c52b294fe02be585aa6f51ab" | ||
"gitHead": "96d56b4ea1acd32d0058fa2f975b9bb1682c4075" | ||
} |
@@ -25,2 +25,5 @@ const lookup = new Map<object, Platform>(); | ||
// http://www.ecma-international.org/ecma-262/#sec-proxy-constructor | ||
public readonly Proxy: TGlobal['Proxy']; | ||
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope | ||
@@ -52,2 +55,3 @@ // Note: we're essentially assuming that all of these are available, even if we aren't even | ||
this.Reflect = 'Reflect' in overrides ? overrides.Reflect! : g.Reflect; | ||
this.Proxy = 'Proxy' in overrides ? overrides.Proxy! : g.Proxy; | ||
@@ -54,0 +58,0 @@ this.clearInterval = 'clearInterval' in overrides ? overrides.clearInterval! : g.clearInterval?.bind(g) ?? notImplemented('clearInterval'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141904
2226