mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
26
react-app/node_modules/core-js/modules/$.fix-re-wks.js
generated
vendored
Normal file
26
react-app/node_modules/core-js/modules/$.fix-re-wks.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'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); }
|
||||
);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user