diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
commit | 5f466137ad6ac596600e3ff53c9b786815398445 (patch) | |
tree | f914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/core-js/modules/es6.string.raw.js | |
parent | c9f5ac8e763eda19aa0564179300cfff76785435 (diff) |
node_modules, clean up package.json
Diffstat (limited to 'node_modules/core-js/modules/es6.string.raw.js')
-rw-r--r-- | node_modules/core-js/modules/es6.string.raw.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/node_modules/core-js/modules/es6.string.raw.js b/node_modules/core-js/modules/es6.string.raw.js index 64279d23d..1016acfa2 100644 --- a/node_modules/core-js/modules/es6.string.raw.js +++ b/node_modules/core-js/modules/es6.string.raw.js @@ -1,19 +1,18 @@ -var $export = require('./$.export') - , toIObject = require('./$.to-iobject') - , toLength = require('./$.to-length'); +var $export = require('./_export') + , toIObject = require('./_to-iobject') + , toLength = require('./_to-length'); $export($export.S, 'String', { // 21.1.2.4 String.raw(callSite, ...substitutions) raw: function raw(callSite){ - var tpl = toIObject(callSite.raw) - , len = toLength(tpl.length) - , $$ = arguments - , $$len = $$.length - , res = [] - , i = 0; + var tpl = toIObject(callSite.raw) + , len = toLength(tpl.length) + , aLen = arguments.length + , res = [] + , i = 0; while(len > i){ res.push(String(tpl[i++])); - if(i < $$len)res.push(String($$[i])); + if(i < aLen)res.push(String(arguments[i])); } return res.join(''); } });
\ No newline at end of file |