From 26fa49f4b0aa658d65a21fffe828f39e78302573 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 17:46:58 +0800 Subject: [PATCH] Revert "Update#139889 [ 快速篩選 ] 年資文案調整" --- PAMapp/node_modules/core-js/modules/es.reflect.construct.js | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/core-js/modules/es.reflect.construct.js b/PAMapp/node_modules/core-js/modules/es.reflect.construct.js index 5036b4f..7630062 100644 --- a/PAMapp/node_modules/core-js/modules/es.reflect.construct.js +++ b/PAMapp/node_modules/core-js/modules/es.reflect.construct.js @@ -1,13 +1,16 @@ var $ = require('../internals/export'); var getBuiltIn = require('../internals/get-built-in'); +var apply = require('../internals/function-apply'); +var bind = require('../internals/function-bind'); var aConstructor = require('../internals/a-constructor'); var anObject = require('../internals/an-object'); var isObject = require('../internals/is-object'); var create = require('../internals/object-create'); -var bind = require('../internals/function-bind'); var fails = require('../internals/fails'); var nativeConstruct = getBuiltIn('Reflect', 'construct'); +var ObjectPrototype = Object.prototype; +var push = [].push; // `Reflect.construct` method // https://tc39.es/ecma262/#sec-reflect.construct @@ -17,9 +20,11 @@ function F() { /* empty */ } return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F); }); + var ARGS_BUG = !fails(function () { nativeConstruct(function () { /* empty */ }); }); + var FORCED = NEW_TARGET_BUG || ARGS_BUG; $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, { @@ -39,13 +44,13 @@ } // w/o altered newTarget, lot of arguments case var $args = [null]; - $args.push.apply($args, args); - return new (bind.apply(Target, $args))(); + apply(push, $args, args); + return new (apply(bind, Target, $args))(); } // with altered newTarget, not support built-in constructors var proto = newTarget.prototype; - var instance = create(isObject(proto) ? proto : Object.prototype); - var result = Function.apply.call(Target, instance, args); + var instance = create(isObject(proto) ? proto : ObjectPrototype); + var result = apply(Target, instance, args); return isObject(result) ? result : instance; } }); -- Gitblit v1.8.0