diff options
Diffstat (limited to 'cli/rt/01_web_util.js')
-rw-r--r-- | cli/rt/01_web_util.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cli/rt/01_web_util.js b/cli/rt/01_web_util.js index ee8992eb2..4a3df65ce 100644 --- a/cli/rt/01_web_util.js +++ b/cli/rt/01_web_util.js @@ -3,10 +3,6 @@ ((window) => { const illegalConstructorKey = Symbol("illegalConstructorKey"); - function isInvalidDate(x) { - return isNaN(x.getTime()); - } - function requiredArguments( name, length, @@ -20,25 +16,6 @@ } } - function immutableDefine( - o, - p, - value, - ) { - Object.defineProperty(o, p, { - value, - configurable: false, - writable: false, - }); - } - - function hasOwnProperty(obj, v) { - if (obj == null) { - return false; - } - return Object.prototype.hasOwnProperty.call(obj, v); - } - const objectCloneMemo = new WeakMap(); function cloneArrayBuffer( @@ -136,24 +113,9 @@ } } - /** A helper function which ensures accessors are enumerable, as they normally - * are not. */ - function defineEnumerableProps( - Ctor, - props, - ) { - for (const prop of props) { - Reflect.defineProperty(Ctor.prototype, prop, { enumerable: true }); - } - } - window.__bootstrap.webUtil = { illegalConstructorKey, - isInvalidDate, requiredArguments, - immutableDefine, - hasOwnProperty, cloneValue, - defineEnumerableProps, }; })(this); |