From 82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Apr 2017 03:09:25 +0200 Subject: Reorganize module loading. We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node. --- node_modules/core-js/modules/es6.function.has-instance.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'node_modules/core-js/modules/es6.function.has-instance.js') diff --git a/node_modules/core-js/modules/es6.function.has-instance.js b/node_modules/core-js/modules/es6.function.has-instance.js index ae294b1f1..94d840f86 100644 --- a/node_modules/core-js/modules/es6.function.has-instance.js +++ b/node_modules/core-js/modules/es6.function.has-instance.js @@ -1,13 +1,13 @@ 'use strict'; -var isObject = require('./_is-object') - , getPrototypeOf = require('./_object-gpo') - , HAS_INSTANCE = require('./_wks')('hasInstance') - , FunctionProto = Function.prototype; +var $ = require('./$') + , isObject = require('./$.is-object') + , HAS_INSTANCE = require('./$.wks')('hasInstance') + , FunctionProto = Function.prototype; // 19.2.3.6 Function.prototype[@@hasInstance](V) -if(!(HAS_INSTANCE in FunctionProto))require('./_object-dp').f(FunctionProto, HAS_INSTANCE, {value: function(O){ +if(!(HAS_INSTANCE in FunctionProto))$.setDesc(FunctionProto, HAS_INSTANCE, {value: function(O){ if(typeof this != 'function' || !isObject(O))return false; if(!isObject(this.prototype))return O instanceof this; // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: - while(O = getPrototypeOf(O))if(this.prototype === O)return true; + while(O = $.getProto(O))if(this.prototype === O)return true; return false; }}); \ No newline at end of file -- cgit v1.2.3