From 5f466137ad6ac596600e3ff53c9b786815398445 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 27 May 2017 17:36:13 +0200 Subject: node_modules, clean up package.json --- node_modules/core-js/modules/$.fix-re-wks.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 node_modules/core-js/modules/$.fix-re-wks.js (limited to 'node_modules/core-js/modules/$.fix-re-wks.js') diff --git a/node_modules/core-js/modules/$.fix-re-wks.js b/node_modules/core-js/modules/$.fix-re-wks.js deleted file mode 100644 index 3597a8985..000000000 --- a/node_modules/core-js/modules/$.fix-re-wks.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -var hide = require('./$.hide') - , redefine = require('./$.redefine') - , fails = require('./$.fails') - , defined = require('./$.defined') - , wks = require('./$.wks'); - -module.exports = function(KEY, length, exec){ - var SYMBOL = wks(KEY) - , original = ''[KEY]; - if(fails(function(){ - var O = {}; - O[SYMBOL] = function(){ return 7; }; - return ''[KEY](O) != 7; - })){ - redefine(String.prototype, KEY, exec(defined, SYMBOL, original)); - hide(RegExp.prototype, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function(string, arg){ return original.call(string, this, arg); } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function(string){ return original.call(string, this); } - ); - } -}; \ No newline at end of file -- cgit v1.2.3