babel-source 5.2.2 → 5.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/babel.js +972 -713
- data/lib/babel/polyfill.js +146 -79
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
data/lib/babel/polyfill.js
CHANGED
@@ -11,7 +11,7 @@ if (global._babelPolyfill) {
|
|
11
11
|
}
|
12
12
|
global._babelPolyfill = true;
|
13
13
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
14
|
-
},{"core-js/shim":
|
14
|
+
},{"core-js/shim":85,"regenerator/runtime":86}],2:[function(require,module,exports){
|
15
15
|
// false -> Array#indexOf
|
16
16
|
// true -> Array#includes
|
17
17
|
var $ = require('./$');
|
@@ -125,7 +125,7 @@ cof.set = function(it, tag, stat){
|
|
125
125
|
if(it && !$.has(it = stat ? it : it.prototype, TAG))$.hide(it, TAG, tag);
|
126
126
|
};
|
127
127
|
module.exports = cof;
|
128
|
-
},{"./$":22,"./$.wks":
|
128
|
+
},{"./$":22,"./$.wks":36}],7:[function(require,module,exports){
|
129
129
|
'use strict';
|
130
130
|
var $ = require('./$')
|
131
131
|
, ctx = require('./$.ctx')
|
@@ -282,7 +282,7 @@ module.exports = {
|
|
282
282
|
}, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);
|
283
283
|
}
|
284
284
|
};
|
285
|
-
},{"./$":22,"./$.assert":4,"./$.ctx":11,"./$.for-of":15,"./$.iter":21,"./$.iter-define":19,"./$.uid":
|
285
|
+
},{"./$":22,"./$.assert":4,"./$.ctx":11,"./$.for-of":15,"./$.iter":21,"./$.iter-define":19,"./$.uid":34}],8:[function(require,module,exports){
|
286
286
|
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
287
287
|
var $def = require('./$.def')
|
288
288
|
, forOf = require('./$.for-of');
|
@@ -380,7 +380,7 @@ module.exports = {
|
|
380
380
|
WEAK: WEAK,
|
381
381
|
ID: ID
|
382
382
|
};
|
383
|
-
},{"./$":22,"./$.array-methods":3,"./$.assert":4,"./$.for-of":15,"./$.uid":
|
383
|
+
},{"./$":22,"./$.array-methods":3,"./$.assert":4,"./$.for-of":15,"./$.uid":34}],10:[function(require,module,exports){
|
384
384
|
'use strict';
|
385
385
|
var $ = require('./$')
|
386
386
|
, $def = require('./$.def')
|
@@ -635,7 +635,7 @@ module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE)
|
|
635
635
|
} else $def($def.P + $def.F * $iter.BUGGY, NAME, methods);
|
636
636
|
}
|
637
637
|
};
|
638
|
-
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.iter":21,"./$.wks":
|
638
|
+
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.iter":21,"./$.wks":36}],20:[function(require,module,exports){
|
639
639
|
var SYMBOL_ITERATOR = require('./$.wks')('iterator')
|
640
640
|
, SAFE_CLOSING = false;
|
641
641
|
try {
|
@@ -655,7 +655,7 @@ module.exports = function(exec){
|
|
655
655
|
} catch(e){ /* empty */ }
|
656
656
|
return safe;
|
657
657
|
};
|
658
|
-
},{"./$.wks":
|
658
|
+
},{"./$.wks":36}],21:[function(require,module,exports){
|
659
659
|
'use strict';
|
660
660
|
var $ = require('./$')
|
661
661
|
, cof = require('./$.cof')
|
@@ -697,7 +697,7 @@ module.exports = {
|
|
697
697
|
cof.set(Constructor, NAME + ' Iterator');
|
698
698
|
}
|
699
699
|
};
|
700
|
-
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.wks":
|
700
|
+
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.wks":36}],22:[function(require,module,exports){
|
701
701
|
'use strict';
|
702
702
|
var global = typeof self != 'undefined' ? self : Function('return this')()
|
703
703
|
, core = {}
|
@@ -889,7 +889,7 @@ module.exports = function(C){
|
|
889
889
|
get: $.that
|
890
890
|
});
|
891
891
|
};
|
892
|
-
},{"./$":22,"./$.wks":
|
892
|
+
},{"./$":22,"./$.wks":36}],29:[function(require,module,exports){
|
893
893
|
// true -> String#at
|
894
894
|
// false -> String#codePointAt
|
895
895
|
var $ = require('./$');
|
@@ -908,6 +908,51 @@ module.exports = function(TO_STRING){
|
|
908
908
|
};
|
909
909
|
};
|
910
910
|
},{"./$":22}],30:[function(require,module,exports){
|
911
|
+
// http://wiki.ecmascript.org/doku.php?id=strawman:string_padding
|
912
|
+
var $ = require('./$')
|
913
|
+
, repeat = require('./$.string-repeat');
|
914
|
+
|
915
|
+
module.exports = function(that, minLength, fillChar, left){
|
916
|
+
// 1. Let O be CheckObjectCoercible(this value).
|
917
|
+
// 2. Let S be ToString(O).
|
918
|
+
var S = String($.assertDefined(that));
|
919
|
+
// 4. If intMinLength is undefined, return S.
|
920
|
+
if(minLength === undefined)return S;
|
921
|
+
// 4. Let intMinLength be ToInteger(minLength).
|
922
|
+
var intMinLength = $.toInteger(minLength);
|
923
|
+
// 5. Let fillLen be the number of characters in S minus intMinLength.
|
924
|
+
var fillLen = intMinLength - S.length;
|
925
|
+
// 6. If fillLen < 0, then throw a RangeError exception.
|
926
|
+
// 7. If fillLen is +∞, then throw a RangeError exception.
|
927
|
+
if(fillLen < 0 || fillLen === Infinity){
|
928
|
+
throw new RangeError('Cannot satisfy string length ' + minLength + ' for string: ' + S);
|
929
|
+
}
|
930
|
+
// 8. Let sFillStr be the string represented by fillStr.
|
931
|
+
// 9. If sFillStr is undefined, let sFillStr be a space character.
|
932
|
+
var sFillStr = fillChar === undefined ? ' ' : String(fillChar);
|
933
|
+
// 10. Let sFillVal be a String made of sFillStr, repeated until fillLen is met.
|
934
|
+
var sFillVal = repeat.call(sFillStr, Math.ceil(fillLen / sFillStr.length));
|
935
|
+
// truncate if we overflowed
|
936
|
+
if(sFillVal.length > fillLen)sFillVal = left
|
937
|
+
? sFillVal.slice(sFillVal.length - fillLen)
|
938
|
+
: sFillVal.slice(0, fillLen);
|
939
|
+
// 11. Return a string made from sFillVal, followed by S.
|
940
|
+
// 11. Return a String made from S, followed by sFillVal.
|
941
|
+
return left ? sFillVal.concat(S) : S.concat(sFillVal);
|
942
|
+
};
|
943
|
+
},{"./$":22,"./$.string-repeat":31}],31:[function(require,module,exports){
|
944
|
+
'use strict';
|
945
|
+
var $ = require('./$');
|
946
|
+
|
947
|
+
module.exports = function repeat(count){
|
948
|
+
var str = String($.assertDefined(this))
|
949
|
+
, res = ''
|
950
|
+
, n = $.toInteger(count);
|
951
|
+
if(n < 0 || n == Infinity)throw RangeError("Count can't be negative");
|
952
|
+
for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;
|
953
|
+
return res;
|
954
|
+
};
|
955
|
+
},{"./$":22}],32:[function(require,module,exports){
|
911
956
|
'use strict';
|
912
957
|
var $ = require('./$')
|
913
958
|
, ctx = require('./$.ctx')
|
@@ -989,7 +1034,7 @@ module.exports = {
|
|
989
1034
|
set: setTask,
|
990
1035
|
clear: clearTask
|
991
1036
|
};
|
992
|
-
},{"./$":22,"./$.cof":6,"./$.ctx":11,"./$.dom-create":13,"./$.invoke":17}],
|
1037
|
+
},{"./$":22,"./$.cof":6,"./$.ctx":11,"./$.dom-create":13,"./$.invoke":17}],33:[function(require,module,exports){
|
993
1038
|
module.exports = function(exec){
|
994
1039
|
try {
|
995
1040
|
exec();
|
@@ -998,14 +1043,14 @@ module.exports = function(exec){
|
|
998
1043
|
return true;
|
999
1044
|
}
|
1000
1045
|
};
|
1001
|
-
},{}],
|
1046
|
+
},{}],34:[function(require,module,exports){
|
1002
1047
|
var sid = 0;
|
1003
1048
|
function uid(key){
|
1004
1049
|
return 'Symbol(' + key + ')_' + (++sid + Math.random()).toString(36);
|
1005
1050
|
}
|
1006
1051
|
uid.safe = require('./$').g.Symbol || uid;
|
1007
1052
|
module.exports = uid;
|
1008
|
-
},{"./$":22}],
|
1053
|
+
},{"./$":22}],35:[function(require,module,exports){
|
1009
1054
|
// 22.1.3.31 Array.prototype[@@unscopables]
|
1010
1055
|
var $ = require('./$')
|
1011
1056
|
, UNSCOPABLES = require('./$.wks')('unscopables');
|
@@ -1013,14 +1058,14 @@ if($.FW && !(UNSCOPABLES in []))$.hide(Array.prototype, UNSCOPABLES, {});
|
|
1013
1058
|
module.exports = function(key){
|
1014
1059
|
if($.FW)[][UNSCOPABLES][key] = true;
|
1015
1060
|
};
|
1016
|
-
},{"./$":22,"./$.wks":
|
1061
|
+
},{"./$":22,"./$.wks":36}],36:[function(require,module,exports){
|
1017
1062
|
var global = require('./$').g
|
1018
1063
|
, store = {};
|
1019
1064
|
module.exports = function(name){
|
1020
1065
|
return store[name] || (store[name] =
|
1021
1066
|
global.Symbol && global.Symbol[name] || require('./$.uid').safe('Symbol.' + name));
|
1022
1067
|
};
|
1023
|
-
},{"./$":22,"./$.uid":
|
1068
|
+
},{"./$":22,"./$.uid":34}],37:[function(require,module,exports){
|
1024
1069
|
var $ = require('./$')
|
1025
1070
|
, cel = require('./$.dom-create')
|
1026
1071
|
, cof = require('./$.cof')
|
@@ -1303,7 +1348,7 @@ if(classof(function(){ return arguments; }()) == 'Object')cof.classof = function
|
|
1303
1348
|
var tag = classof(it);
|
1304
1349
|
return tag == 'Object' && isFunction(it.callee) ? 'Arguments' : tag;
|
1305
1350
|
};
|
1306
|
-
},{"./$":22,"./$.array-includes":2,"./$.array-methods":3,"./$.assert":4,"./$.cof":6,"./$.def":12,"./$.dom-create":13,"./$.invoke":17,"./$.replacer":26,"./$.throws":
|
1351
|
+
},{"./$":22,"./$.array-includes":2,"./$.array-methods":3,"./$.assert":4,"./$.cof":6,"./$.def":12,"./$.dom-create":13,"./$.invoke":17,"./$.replacer":26,"./$.throws":33,"./$.uid":34}],38:[function(require,module,exports){
|
1307
1352
|
'use strict';
|
1308
1353
|
var $ = require('./$')
|
1309
1354
|
, $def = require('./$.def')
|
@@ -1333,7 +1378,7 @@ $def($def.P, 'Array', {
|
|
1333
1378
|
}
|
1334
1379
|
});
|
1335
1380
|
require('./$.unscope')('copyWithin');
|
1336
|
-
},{"./$":22,"./$.def":12,"./$.unscope":
|
1381
|
+
},{"./$":22,"./$.def":12,"./$.unscope":35}],39:[function(require,module,exports){
|
1337
1382
|
'use strict';
|
1338
1383
|
var $ = require('./$')
|
1339
1384
|
, $def = require('./$.def')
|
@@ -1351,7 +1396,7 @@ $def($def.P, 'Array', {
|
|
1351
1396
|
}
|
1352
1397
|
});
|
1353
1398
|
require('./$.unscope')('fill');
|
1354
|
-
},{"./$":22,"./$.def":12,"./$.unscope":
|
1399
|
+
},{"./$":22,"./$.def":12,"./$.unscope":35}],40:[function(require,module,exports){
|
1355
1400
|
'use strict';
|
1356
1401
|
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
|
1357
1402
|
var KEY = 'findIndex'
|
@@ -1366,7 +1411,7 @@ $def($def.P + $def.F * forced, 'Array', {
|
|
1366
1411
|
}
|
1367
1412
|
});
|
1368
1413
|
require('./$.unscope')(KEY);
|
1369
|
-
},{"./$.array-methods":3,"./$.def":12,"./$.unscope":
|
1414
|
+
},{"./$.array-methods":3,"./$.def":12,"./$.unscope":35}],41:[function(require,module,exports){
|
1370
1415
|
'use strict';
|
1371
1416
|
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
|
1372
1417
|
var KEY = 'find'
|
@@ -1381,7 +1426,7 @@ $def($def.P + $def.F * forced, 'Array', {
|
|
1381
1426
|
}
|
1382
1427
|
});
|
1383
1428
|
require('./$.unscope')(KEY);
|
1384
|
-
},{"./$.array-methods":3,"./$.def":12,"./$.unscope":
|
1429
|
+
},{"./$.array-methods":3,"./$.def":12,"./$.unscope":35}],42:[function(require,module,exports){
|
1385
1430
|
var $ = require('./$')
|
1386
1431
|
, ctx = require('./$.ctx')
|
1387
1432
|
, $def = require('./$.def')
|
@@ -1414,7 +1459,7 @@ $def($def.S + $def.F * !require('./$.iter-detect')(function(iter){ Array.from(it
|
|
1414
1459
|
return result;
|
1415
1460
|
}
|
1416
1461
|
});
|
1417
|
-
},{"./$":22,"./$.ctx":11,"./$.def":12,"./$.iter":21,"./$.iter-call":18,"./$.iter-detect":20}],
|
1462
|
+
},{"./$":22,"./$.ctx":11,"./$.def":12,"./$.iter":21,"./$.iter-call":18,"./$.iter-detect":20}],43:[function(require,module,exports){
|
1418
1463
|
var $ = require('./$')
|
1419
1464
|
, setUnscope = require('./$.unscope')
|
1420
1465
|
, ITER = require('./$.uid').safe('iter')
|
@@ -1449,7 +1494,7 @@ Iterators.Arguments = Iterators.Array;
|
|
1449
1494
|
setUnscope('keys');
|
1450
1495
|
setUnscope('values');
|
1451
1496
|
setUnscope('entries');
|
1452
|
-
},{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.uid":
|
1497
|
+
},{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.uid":34,"./$.unscope":35}],44:[function(require,module,exports){
|
1453
1498
|
var $def = require('./$.def');
|
1454
1499
|
$def($def.S, 'Array', {
|
1455
1500
|
// 22.1.2.3 Array.of( ...items)
|
@@ -1463,9 +1508,9 @@ $def($def.S, 'Array', {
|
|
1463
1508
|
return result;
|
1464
1509
|
}
|
1465
1510
|
});
|
1466
|
-
},{"./$.def":12}],
|
1511
|
+
},{"./$.def":12}],45:[function(require,module,exports){
|
1467
1512
|
require('./$.species')(Array);
|
1468
|
-
},{"./$.species":28}],
|
1513
|
+
},{"./$.species":28}],46:[function(require,module,exports){
|
1469
1514
|
var $ = require('./$')
|
1470
1515
|
, HAS_INSTANCE = require('./$.wks')('hasInstance')
|
1471
1516
|
, FunctionProto = Function.prototype;
|
@@ -1477,7 +1522,7 @@ if(!(HAS_INSTANCE in FunctionProto))$.setDesc(FunctionProto, HAS_INSTANCE, {valu
|
|
1477
1522
|
while(O = $.getProto(O))if(this.prototype === O)return true;
|
1478
1523
|
return false;
|
1479
1524
|
}});
|
1480
|
-
},{"./$":22,"./$.wks":
|
1525
|
+
},{"./$":22,"./$.wks":36}],47:[function(require,module,exports){
|
1481
1526
|
'use strict';
|
1482
1527
|
var $ = require('./$')
|
1483
1528
|
, NAME = 'name'
|
@@ -1496,7 +1541,7 @@ NAME in FunctionProto || $.FW && $.DESC && setDesc(FunctionProto, NAME, {
|
|
1496
1541
|
$.has(this, NAME) || setDesc(this, NAME, $.desc(0, value));
|
1497
1542
|
}
|
1498
1543
|
});
|
1499
|
-
},{"./$":22}],
|
1544
|
+
},{"./$":22}],48:[function(require,module,exports){
|
1500
1545
|
'use strict';
|
1501
1546
|
var strong = require('./$.collection-strong');
|
1502
1547
|
|
@@ -1512,7 +1557,7 @@ require('./$.collection')('Map', {
|
|
1512
1557
|
return strong.def(this, key === 0 ? 0 : key, value);
|
1513
1558
|
}
|
1514
1559
|
}, strong, true);
|
1515
|
-
},{"./$.collection":10,"./$.collection-strong":7}],
|
1560
|
+
},{"./$.collection":10,"./$.collection-strong":7}],49:[function(require,module,exports){
|
1516
1561
|
var Infinity = 1 / 0
|
1517
1562
|
, $def = require('./$.def')
|
1518
1563
|
, E = Math.E
|
@@ -1635,7 +1680,7 @@ $def($def.S, 'Math', {
|
|
1635
1680
|
return (it > 0 ? floor : ceil)(it);
|
1636
1681
|
}
|
1637
1682
|
});
|
1638
|
-
},{"./$.def":12}],
|
1683
|
+
},{"./$.def":12}],50:[function(require,module,exports){
|
1639
1684
|
'use strict';
|
1640
1685
|
var $ = require('./$')
|
1641
1686
|
, isObject = $.isObject
|
@@ -1680,7 +1725,7 @@ if($.FW && !($Number('0o1') && $Number('0b1'))){
|
|
1680
1725
|
proto.constructor = $Number;
|
1681
1726
|
$.hide($.g, NUMBER, $Number);
|
1682
1727
|
}
|
1683
|
-
},{"./$":22}],
|
1728
|
+
},{"./$":22}],51:[function(require,module,exports){
|
1684
1729
|
var $ = require('./$')
|
1685
1730
|
, $def = require('./$.def')
|
1686
1731
|
, abs = Math.abs
|
@@ -1716,11 +1761,11 @@ $def($def.S, 'Number', {
|
|
1716
1761
|
// 20.1.2.13 Number.parseInt(string, radix)
|
1717
1762
|
parseInt: parseInt
|
1718
1763
|
});
|
1719
|
-
},{"./$":22,"./$.def":12}],
|
1764
|
+
},{"./$":22,"./$.def":12}],52:[function(require,module,exports){
|
1720
1765
|
// 19.1.3.1 Object.assign(target, source)
|
1721
1766
|
var $def = require('./$.def');
|
1722
1767
|
$def($def.S, 'Object', {assign: require('./$.assign')});
|
1723
|
-
},{"./$.assign":5,"./$.def":12}],
|
1768
|
+
},{"./$.assign":5,"./$.def":12}],53:[function(require,module,exports){
|
1724
1769
|
// 19.1.3.10 Object.is(value1, value2)
|
1725
1770
|
var $def = require('./$.def');
|
1726
1771
|
$def($def.S, 'Object', {
|
@@ -1728,11 +1773,11 @@ $def($def.S, 'Object', {
|
|
1728
1773
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
1729
1774
|
}
|
1730
1775
|
});
|
1731
|
-
},{"./$.def":12}],
|
1776
|
+
},{"./$.def":12}],54:[function(require,module,exports){
|
1732
1777
|
// 19.1.3.19 Object.setPrototypeOf(O, proto)
|
1733
1778
|
var $def = require('./$.def');
|
1734
1779
|
$def($def.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});
|
1735
|
-
},{"./$.def":12,"./$.set-proto":27}],
|
1780
|
+
},{"./$.def":12,"./$.set-proto":27}],55:[function(require,module,exports){
|
1736
1781
|
var $ = require('./$')
|
1737
1782
|
, $def = require('./$.def')
|
1738
1783
|
, isObject = $.isObject
|
@@ -1771,7 +1816,7 @@ wrapObjectMethod('getOwnPropertyDescriptor', 4);
|
|
1771
1816
|
wrapObjectMethod('getPrototypeOf', 5);
|
1772
1817
|
wrapObjectMethod('keys');
|
1773
1818
|
wrapObjectMethod('getOwnPropertyNames');
|
1774
|
-
},{"./$":22,"./$.def":12}],
|
1819
|
+
},{"./$":22,"./$.def":12}],56:[function(require,module,exports){
|
1775
1820
|
'use strict';
|
1776
1821
|
// 19.1.3.6 Object.prototype.toString()
|
1777
1822
|
var $ = require('./$')
|
@@ -1781,7 +1826,7 @@ tmp[require('./$.wks')('toStringTag')] = 'z';
|
|
1781
1826
|
if($.FW && cof(tmp) != 'z')$.hide(Object.prototype, 'toString', function toString(){
|
1782
1827
|
return '[object ' + cof.classof(this) + ']';
|
1783
1828
|
});
|
1784
|
-
},{"./$":22,"./$.cof":6,"./$.wks":
|
1829
|
+
},{"./$":22,"./$.cof":6,"./$.wks":36}],57:[function(require,module,exports){
|
1785
1830
|
'use strict';
|
1786
1831
|
var $ = require('./$')
|
1787
1832
|
, ctx = require('./$.ctx')
|
@@ -2011,20 +2056,24 @@ $def($def.S + $def.F * !(useNative && require('./$.iter-detect')(function(iter){
|
|
2011
2056
|
});
|
2012
2057
|
}
|
2013
2058
|
});
|
2014
|
-
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.ctx":11,"./$.def":12,"./$.for-of":15,"./$.iter-detect":20,"./$.set-proto":27,"./$.species":28,"./$.task":
|
2059
|
+
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.ctx":11,"./$.def":12,"./$.for-of":15,"./$.iter-detect":20,"./$.set-proto":27,"./$.species":28,"./$.task":32,"./$.uid":34,"./$.wks":36}],58:[function(require,module,exports){
|
2015
2060
|
var $ = require('./$')
|
2016
2061
|
, $def = require('./$.def')
|
2017
2062
|
, setProto = require('./$.set-proto')
|
2018
2063
|
, $iter = require('./$.iter')
|
2064
|
+
, ITERATOR = require('./$.wks')('iterator')
|
2019
2065
|
, ITER = require('./$.uid').safe('iter')
|
2020
2066
|
, step = $iter.step
|
2021
2067
|
, assert = require('./$.assert')
|
2022
2068
|
, isObject = $.isObject
|
2023
2069
|
, getProto = $.getProto
|
2070
|
+
, $Reflect = $.g.Reflect
|
2024
2071
|
, _apply = Function.apply
|
2025
2072
|
, assertObject = assert.obj
|
2026
2073
|
, _isExtensible = Object.isExtensible || $.isObject
|
2027
|
-
, _preventExtensions = Object.preventExtensions || $.it
|
2074
|
+
, _preventExtensions = Object.preventExtensions || $.it
|
2075
|
+
// IE TP has broken Reflect.enumerate
|
2076
|
+
, buggyEnumerate = !($Reflect && $Reflect.enumerate && ITERATOR in $Reflect.enumerate({}));
|
2028
2077
|
|
2029
2078
|
function Enumerate(iterated){
|
2030
2079
|
$.set(this, ITER, {o: iterated, k: undefined, i: 0});
|
@@ -2070,10 +2119,6 @@ var reflect = {
|
|
2070
2119
|
var desc = $.getDesc(assertObject(target), propertyKey);
|
2071
2120
|
return desc && !desc.configurable ? false : delete target[propertyKey];
|
2072
2121
|
},
|
2073
|
-
// 26.1.5 Reflect.enumerate(target)
|
2074
|
-
enumerate: function enumerate(target){
|
2075
|
-
return new Enumerate(assertObject(target));
|
2076
|
-
},
|
2077
2122
|
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
|
2078
2123
|
get: function get(target, propertyKey/*, receiver*/){
|
2079
2124
|
var receiver = arguments.length < 3 ? target : arguments[2]
|
@@ -2148,8 +2193,16 @@ if(setProto)reflect.setPrototypeOf = function setPrototypeOf(target, proto){
|
|
2148
2193
|
};
|
2149
2194
|
|
2150
2195
|
$def($def.G, {Reflect: {}});
|
2196
|
+
|
2197
|
+
$def($def.S + $def.F * buggyEnumerate, 'Reflect', {
|
2198
|
+
// 26.1.5 Reflect.enumerate(target)
|
2199
|
+
enumerate: function enumerate(target){
|
2200
|
+
return new Enumerate(assertObject(target));
|
2201
|
+
}
|
2202
|
+
});
|
2203
|
+
|
2151
2204
|
$def($def.S, 'Reflect', reflect);
|
2152
|
-
},{"./$":22,"./$.assert":4,"./$.def":12,"./$.iter":21,"./$.own-keys":24,"./$.set-proto":27,"./$.uid":
|
2205
|
+
},{"./$":22,"./$.assert":4,"./$.def":12,"./$.iter":21,"./$.own-keys":24,"./$.set-proto":27,"./$.uid":34,"./$.wks":36}],59:[function(require,module,exports){
|
2153
2206
|
var $ = require('./$')
|
2154
2207
|
, cof = require('./$.cof')
|
2155
2208
|
, $RegExp = $.g.RegExp
|
@@ -2193,7 +2246,7 @@ if($.FW && $.DESC){
|
|
2193
2246
|
});
|
2194
2247
|
}
|
2195
2248
|
require('./$.species')($RegExp);
|
2196
|
-
},{"./$":22,"./$.cof":6,"./$.replacer":26,"./$.species":28}],
|
2249
|
+
},{"./$":22,"./$.cof":6,"./$.replacer":26,"./$.species":28}],60:[function(require,module,exports){
|
2197
2250
|
'use strict';
|
2198
2251
|
var strong = require('./$.collection-strong');
|
2199
2252
|
|
@@ -2204,7 +2257,7 @@ require('./$.collection')('Set', {
|
|
2204
2257
|
return strong.def(this, value = value === 0 ? 0 : value, value);
|
2205
2258
|
}
|
2206
2259
|
}, strong);
|
2207
|
-
},{"./$.collection":10,"./$.collection-strong":7}],
|
2260
|
+
},{"./$.collection":10,"./$.collection-strong":7}],61:[function(require,module,exports){
|
2208
2261
|
'use strict';
|
2209
2262
|
var $def = require('./$.def')
|
2210
2263
|
, $at = require('./$.string-at')(false);
|
@@ -2214,7 +2267,7 @@ $def($def.P, 'String', {
|
|
2214
2267
|
return $at(this, pos);
|
2215
2268
|
}
|
2216
2269
|
});
|
2217
|
-
},{"./$.def":12,"./$.string-at":29}],
|
2270
|
+
},{"./$.def":12,"./$.string-at":29}],62:[function(require,module,exports){
|
2218
2271
|
'use strict';
|
2219
2272
|
var $ = require('./$')
|
2220
2273
|
, cof = require('./$.cof')
|
@@ -2234,12 +2287,14 @@ $def($def.P + $def.F * !require('./$.throws')(function(){ 'q'.endsWith(/./); }),
|
|
2234
2287
|
return that.slice(end - searchString.length, end) === searchString;
|
2235
2288
|
}
|
2236
2289
|
});
|
2237
|
-
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.throws":
|
2290
|
+
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.throws":33}],63:[function(require,module,exports){
|
2238
2291
|
var $def = require('./$.def')
|
2239
2292
|
, toIndex = require('./$').toIndex
|
2240
|
-
, fromCharCode = String.fromCharCode
|
2293
|
+
, fromCharCode = String.fromCharCode
|
2294
|
+
, $fromCodePoint = String.fromCodePoint;
|
2241
2295
|
|
2242
|
-
|
2296
|
+
// length should be 1, old FF problem
|
2297
|
+
$def($def.S + $def.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
|
2243
2298
|
// 21.1.2.2 String.fromCodePoint(...codePoints)
|
2244
2299
|
fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars
|
2245
2300
|
var res = []
|
@@ -2256,7 +2311,7 @@ $def($def.S, 'String', {
|
|
2256
2311
|
} return res.join('');
|
2257
2312
|
}
|
2258
2313
|
});
|
2259
|
-
},{"./$":22,"./$.def":12}],
|
2314
|
+
},{"./$":22,"./$.def":12}],64:[function(require,module,exports){
|
2260
2315
|
'use strict';
|
2261
2316
|
var $ = require('./$')
|
2262
2317
|
, cof = require('./$.cof')
|
@@ -2269,7 +2324,7 @@ $def($def.P, 'String', {
|
|
2269
2324
|
return !!~String($.assertDefined(this)).indexOf(searchString, arguments[1]);
|
2270
2325
|
}
|
2271
2326
|
});
|
2272
|
-
},{"./$":22,"./$.cof":6,"./$.def":12}],
|
2327
|
+
},{"./$":22,"./$.cof":6,"./$.def":12}],65:[function(require,module,exports){
|
2273
2328
|
var set = require('./$').set
|
2274
2329
|
, $at = require('./$.string-at')(true)
|
2275
2330
|
, ITER = require('./$.uid').safe('iter')
|
@@ -2290,7 +2345,7 @@ require('./$.iter-define')(String, 'String', function(iterated){
|
|
2290
2345
|
iter.i += point.length;
|
2291
2346
|
return step(0, point);
|
2292
2347
|
});
|
2293
|
-
},{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.string-at":29,"./$.uid":
|
2348
|
+
},{"./$":22,"./$.iter":21,"./$.iter-define":19,"./$.string-at":29,"./$.uid":34}],66:[function(require,module,exports){
|
2294
2349
|
var $ = require('./$')
|
2295
2350
|
, $def = require('./$.def');
|
2296
2351
|
|
@@ -2308,23 +2363,14 @@ $def($def.S, 'String', {
|
|
2308
2363
|
} return res.join('');
|
2309
2364
|
}
|
2310
2365
|
});
|
2311
|
-
},{"./$":22,"./$.def":12}],
|
2312
|
-
|
2313
|
-
var $ = require('./$')
|
2314
|
-
, $def = require('./$.def');
|
2366
|
+
},{"./$":22,"./$.def":12}],67:[function(require,module,exports){
|
2367
|
+
var $def = require('./$.def');
|
2315
2368
|
|
2316
2369
|
$def($def.P, 'String', {
|
2317
2370
|
// 21.1.3.13 String.prototype.repeat(count)
|
2318
|
-
repeat:
|
2319
|
-
var str = String($.assertDefined(this))
|
2320
|
-
, res = ''
|
2321
|
-
, n = $.toInteger(count);
|
2322
|
-
if(n < 0 || n == Infinity)throw RangeError("Count can't be negative");
|
2323
|
-
for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;
|
2324
|
-
return res;
|
2325
|
-
}
|
2371
|
+
repeat: require('./$.string-repeat')
|
2326
2372
|
});
|
2327
|
-
},{"
|
2373
|
+
},{"./$.def":12,"./$.string-repeat":31}],68:[function(require,module,exports){
|
2328
2374
|
'use strict';
|
2329
2375
|
var $ = require('./$')
|
2330
2376
|
, cof = require('./$.cof')
|
@@ -2341,7 +2387,7 @@ $def($def.P + $def.F * !require('./$.throws')(function(){ 'q'.startsWith(/./); }
|
|
2341
2387
|
return that.slice(index, index + searchString.length) === searchString;
|
2342
2388
|
}
|
2343
2389
|
});
|
2344
|
-
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.throws":
|
2390
|
+
},{"./$":22,"./$.cof":6,"./$.def":12,"./$.throws":33}],69:[function(require,module,exports){
|
2345
2391
|
'use strict';
|
2346
2392
|
// ECMAScript 6 symbols shim
|
2347
2393
|
var $ = require('./$')
|
@@ -2502,7 +2548,7 @@ setTag($Symbol, 'Symbol');
|
|
2502
2548
|
setTag(Math, 'Math', true);
|
2503
2549
|
// 24.3.3 JSON[@@toStringTag]
|
2504
2550
|
setTag($.g.JSON, 'JSON', true);
|
2505
|
-
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.def":12,"./$.enum-keys":14,"./$.keyof":23,"./$.uid":
|
2551
|
+
},{"./$":22,"./$.assert":4,"./$.cof":6,"./$.def":12,"./$.enum-keys":14,"./$.keyof":23,"./$.uid":34,"./$.wks":36}],70:[function(require,module,exports){
|
2506
2552
|
'use strict';
|
2507
2553
|
var $ = require('./$')
|
2508
2554
|
, weak = require('./$.collection-weak')
|
@@ -2543,7 +2589,7 @@ if($.FW && new WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){
|
|
2543
2589
|
};
|
2544
2590
|
});
|
2545
2591
|
}
|
2546
|
-
},{"./$":22,"./$.collection":10,"./$.collection-weak":9}],
|
2592
|
+
},{"./$":22,"./$.collection":10,"./$.collection-weak":9}],71:[function(require,module,exports){
|
2547
2593
|
'use strict';
|
2548
2594
|
var weak = require('./$.collection-weak');
|
2549
2595
|
|
@@ -2554,7 +2600,7 @@ require('./$.collection')('WeakSet', {
|
|
2554
2600
|
return weak.def(this, value, true);
|
2555
2601
|
}
|
2556
2602
|
}, weak, false, true);
|
2557
|
-
},{"./$.collection":10,"./$.collection-weak":9}],
|
2603
|
+
},{"./$.collection":10,"./$.collection-weak":9}],72:[function(require,module,exports){
|
2558
2604
|
// https://github.com/domenic/Array.prototype.includes
|
2559
2605
|
var $def = require('./$.def')
|
2560
2606
|
, $includes = require('./$.array-includes')(true);
|
@@ -2564,10 +2610,10 @@ $def($def.P, 'Array', {
|
|
2564
2610
|
}
|
2565
2611
|
});
|
2566
2612
|
require('./$.unscope')('includes');
|
2567
|
-
},{"./$.array-includes":2,"./$.def":12,"./$.unscope":
|
2613
|
+
},{"./$.array-includes":2,"./$.def":12,"./$.unscope":35}],73:[function(require,module,exports){
|
2568
2614
|
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
2569
2615
|
require('./$.collection-to-json')('Map');
|
2570
|
-
},{"./$.collection-to-json":8}],
|
2616
|
+
},{"./$.collection-to-json":8}],74:[function(require,module,exports){
|
2571
2617
|
// https://gist.github.com/WebReflection/9353781
|
2572
2618
|
var $ = require('./$')
|
2573
2619
|
, $def = require('./$.def')
|
@@ -2583,7 +2629,7 @@ $def($def.S, 'Object', {
|
|
2583
2629
|
return result;
|
2584
2630
|
}
|
2585
2631
|
});
|
2586
|
-
},{"./$":22,"./$.def":12,"./$.own-keys":24}],
|
2632
|
+
},{"./$":22,"./$.def":12,"./$.own-keys":24}],75:[function(require,module,exports){
|
2587
2633
|
// http://goo.gl/XkBrjD
|
2588
2634
|
var $ = require('./$')
|
2589
2635
|
, $def = require('./$.def');
|
@@ -2604,16 +2650,16 @@ $def($def.S, 'Object', {
|
|
2604
2650
|
values: createObjectToArray(false),
|
2605
2651
|
entries: createObjectToArray(true)
|
2606
2652
|
});
|
2607
|
-
},{"./$":22,"./$.def":12}],
|
2653
|
+
},{"./$":22,"./$.def":12}],76:[function(require,module,exports){
|
2608
2654
|
// https://gist.github.com/kangax/9698100
|
2609
2655
|
var $def = require('./$.def');
|
2610
2656
|
$def($def.S, 'RegExp', {
|
2611
2657
|
escape: require('./$.replacer')(/([\\\-[\]{}()*+?.,^$|])/g, '\\$1', true)
|
2612
2658
|
});
|
2613
|
-
},{"./$.def":12,"./$.replacer":26}],
|
2659
|
+
},{"./$.def":12,"./$.replacer":26}],77:[function(require,module,exports){
|
2614
2660
|
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
2615
2661
|
require('./$.collection-to-json')('Set');
|
2616
|
-
},{"./$.collection-to-json":8}],
|
2662
|
+
},{"./$.collection-to-json":8}],78:[function(require,module,exports){
|
2617
2663
|
// https://github.com/mathiasbynens/String.prototype.at
|
2618
2664
|
'use strict';
|
2619
2665
|
var $def = require('./$.def')
|
@@ -2623,7 +2669,25 @@ $def($def.P, 'String', {
|
|
2623
2669
|
return $at(this, pos);
|
2624
2670
|
}
|
2625
2671
|
});
|
2626
|
-
},{"./$.def":12,"./$.string-at":29}],
|
2672
|
+
},{"./$.def":12,"./$.string-at":29}],79:[function(require,module,exports){
|
2673
|
+
'use strict';
|
2674
|
+
var $def = require('./$.def')
|
2675
|
+
, $pad = require('./$.string-pad');
|
2676
|
+
$def($def.P, 'String', {
|
2677
|
+
lpad: function lpad(n){
|
2678
|
+
return $pad(this, n, arguments[1], true);
|
2679
|
+
}
|
2680
|
+
});
|
2681
|
+
},{"./$.def":12,"./$.string-pad":30}],80:[function(require,module,exports){
|
2682
|
+
'use strict';
|
2683
|
+
var $def = require('./$.def')
|
2684
|
+
, $pad = require('./$.string-pad');
|
2685
|
+
$def($def.P, 'String', {
|
2686
|
+
rpad: function rpad(n){
|
2687
|
+
return $pad(this, n, arguments[1], false);
|
2688
|
+
}
|
2689
|
+
});
|
2690
|
+
},{"./$.def":12,"./$.string-pad":30}],81:[function(require,module,exports){
|
2627
2691
|
// JavaScript 1.6 / Strawman array statics shim
|
2628
2692
|
var $ = require('./$')
|
2629
2693
|
, $def = require('./$.def')
|
@@ -2640,7 +2704,7 @@ setStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3);
|
|
2640
2704
|
setStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' +
|
2641
2705
|
'reduce,reduceRight,copyWithin,fill,turn');
|
2642
2706
|
$def($def.S, 'Array', statics);
|
2643
|
-
},{"./$":22,"./$.ctx":11,"./$.def":12}],
|
2707
|
+
},{"./$":22,"./$.ctx":11,"./$.def":12}],82:[function(require,module,exports){
|
2644
2708
|
require('./es6.array.iterator');
|
2645
2709
|
var $ = require('./$')
|
2646
2710
|
, Iterators = require('./$.iter').Iterators
|
@@ -2651,14 +2715,14 @@ if($.FW && NodeList && !(ITERATOR in NodeList.prototype)){
|
|
2651
2715
|
$.hide(NodeList.prototype, ITERATOR, ArrayValues);
|
2652
2716
|
}
|
2653
2717
|
Iterators.NodeList = ArrayValues;
|
2654
|
-
},{"./$":22,"./$.iter":21,"./$.wks":
|
2718
|
+
},{"./$":22,"./$.iter":21,"./$.wks":36,"./es6.array.iterator":43}],83:[function(require,module,exports){
|
2655
2719
|
var $def = require('./$.def')
|
2656
2720
|
, $task = require('./$.task');
|
2657
2721
|
$def($def.G + $def.B, {
|
2658
2722
|
setImmediate: $task.set,
|
2659
2723
|
clearImmediate: $task.clear
|
2660
2724
|
});
|
2661
|
-
},{"./$.def":12,"./$.task":
|
2725
|
+
},{"./$.def":12,"./$.task":32}],84:[function(require,module,exports){
|
2662
2726
|
// ie9- setTimeout & setInterval additional parameters fix
|
2663
2727
|
var $ = require('./$')
|
2664
2728
|
, $def = require('./$.def')
|
@@ -2679,7 +2743,7 @@ $def($def.G + $def.B + $def.F * MSIE, {
|
|
2679
2743
|
setTimeout: wrap($.g.setTimeout),
|
2680
2744
|
setInterval: wrap($.g.setInterval)
|
2681
2745
|
});
|
2682
|
-
},{"./$":22,"./$.def":12,"./$.invoke":17,"./$.partial":25}],
|
2746
|
+
},{"./$":22,"./$.def":12,"./$.invoke":17,"./$.partial":25}],85:[function(require,module,exports){
|
2683
2747
|
require('./modules/es5');
|
2684
2748
|
require('./modules/es6.symbol');
|
2685
2749
|
require('./modules/es6.object.assign');
|
@@ -2717,6 +2781,8 @@ require('./modules/es6.weak-set');
|
|
2717
2781
|
require('./modules/es6.reflect');
|
2718
2782
|
require('./modules/es7.array.includes');
|
2719
2783
|
require('./modules/es7.string.at');
|
2784
|
+
require('./modules/es7.string.lpad');
|
2785
|
+
require('./modules/es7.string.rpad');
|
2720
2786
|
require('./modules/es7.regexp.escape');
|
2721
2787
|
require('./modules/es7.object.get-own-property-descriptors');
|
2722
2788
|
require('./modules/es7.object.to-array');
|
@@ -2726,8 +2792,9 @@ require('./modules/js.array.statics');
|
|
2726
2792
|
require('./modules/web.timers');
|
2727
2793
|
require('./modules/web.immediate');
|
2728
2794
|
require('./modules/web.dom.iterable');
|
2729
|
-
module.exports = require('./modules/$').core;
|
2730
|
-
|
2795
|
+
module.exports = require('./modules/$').core;
|
2796
|
+
|
2797
|
+
},{"./modules/$":22,"./modules/es5":37,"./modules/es6.array.copy-within":38,"./modules/es6.array.fill":39,"./modules/es6.array.find":41,"./modules/es6.array.find-index":40,"./modules/es6.array.from":42,"./modules/es6.array.iterator":43,"./modules/es6.array.of":44,"./modules/es6.array.species":45,"./modules/es6.function.has-instance":46,"./modules/es6.function.name":47,"./modules/es6.map":48,"./modules/es6.math":49,"./modules/es6.number.constructor":50,"./modules/es6.number.statics":51,"./modules/es6.object.assign":52,"./modules/es6.object.is":53,"./modules/es6.object.set-prototype-of":54,"./modules/es6.object.statics-accept-primitives":55,"./modules/es6.object.to-string":56,"./modules/es6.promise":57,"./modules/es6.reflect":58,"./modules/es6.regexp":59,"./modules/es6.set":60,"./modules/es6.string.code-point-at":61,"./modules/es6.string.ends-with":62,"./modules/es6.string.from-code-point":63,"./modules/es6.string.includes":64,"./modules/es6.string.iterator":65,"./modules/es6.string.raw":66,"./modules/es6.string.repeat":67,"./modules/es6.string.starts-with":68,"./modules/es6.symbol":69,"./modules/es6.weak-map":70,"./modules/es6.weak-set":71,"./modules/es7.array.includes":72,"./modules/es7.map.to-json":73,"./modules/es7.object.get-own-property-descriptors":74,"./modules/es7.object.to-array":75,"./modules/es7.regexp.escape":76,"./modules/es7.set.to-json":77,"./modules/es7.string.at":78,"./modules/es7.string.lpad":79,"./modules/es7.string.rpad":80,"./modules/js.array.statics":81,"./modules/web.dom.iterable":82,"./modules/web.immediate":83,"./modules/web.timers":84}],86:[function(require,module,exports){
|
2731
2798
|
(function (global){
|
2732
2799
|
/**
|
2733
2800
|
* Copyright (c) 2014, Facebook, Inc.
|