babel-source 4.4.5 → 4.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/babel.js +405 -260
- data/lib/babel/polyfill.js +276 -196
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGZlYmM4ODgyNzhlYzYyYzdhZDE0MWQwYWNlZDQ0OWJiZGQzMmExMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTM5ZjRjOTA4ZjNlYWY1MDk3OTQ1ZjVkZTUxMjNjZTdlNzE0MDA5OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODNkOTUwZjM0MGM1MzAzOWNiYmM5NjE3MTI3Mjg2MTI0M2NhMGU2NjIxOTgz
|
10
|
+
MmViNDkxMWU5YjU4M2MwN2JiNmQxZDVlODZhYmI3ODU1YjU1YWM4YjAxMDAz
|
11
|
+
NmY4MjZmMGJkZjVmMDE2MjA5ZjY0NDAzMDNmZTdmNjBjZmE1NmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWJmZTdmYmFkNGRkOTNmNjQ2NGMxODUxNjAyMDc5ZWIyZjM5MWFkMTlmN2E5
|
14
|
+
YWFkYTcyNDc2OWVkNDY1NDY2NDEyMDFjNTU1NWE5ZTU3NTEyZTJkZjgxNzZh
|
15
|
+
NWY2NzEyMTI3MDhhNWFkNjI5MTIyNzFiZGZhOTI3NjhmNGU3ZjI=
|
data/lib/babel.js
CHANGED
@@ -3164,16 +3164,19 @@ module.exports = function (exports, opts) {
|
|
3164
3164
|
};
|
3165
3165
|
|
3166
3166
|
exports.JSXAttribute = {
|
3167
|
-
|
3168
|
-
var value = node.value
|
3169
|
-
|
3167
|
+
enter: function (node) {
|
3168
|
+
var value = node.value;
|
3170
3169
|
if (t.isLiteral(value) && isString(value.value)) {
|
3171
3170
|
value.value = value.value.replace(/\n\s+/g, " ");
|
3172
3171
|
}
|
3172
|
+
},
|
3173
3173
|
|
3174
|
+
exit: function (node) {
|
3175
|
+
var value = node.value || t.literal(true);
|
3174
3176
|
return t.inherits(t.property("init", node.name, value), node);
|
3175
3177
|
}
|
3176
3178
|
};
|
3179
|
+
|
3177
3180
|
exports.JSXOpeningElement = {
|
3178
3181
|
exit: function (node, parent, scope, file) {
|
3179
3182
|
var tagExpr = node.name;
|
@@ -5881,6 +5884,7 @@ function ClassTransformer(node, file, scope, isStatement) {
|
|
5881
5884
|
ClassTransformer.prototype.run = function () {
|
5882
5885
|
var superName = this.superName;
|
5883
5886
|
var className = this.className;
|
5887
|
+
var classBody = this.node.body.body;
|
5884
5888
|
var file = this.file;
|
5885
5889
|
|
5886
5890
|
//
|
@@ -5893,13 +5897,21 @@ ClassTransformer.prototype.run = function () {
|
|
5893
5897
|
className
|
5894
5898
|
]))
|
5895
5899
|
]);
|
5896
|
-
var constructor;
|
5897
5900
|
|
5901
|
+
var constructor;
|
5898
5902
|
if (this.node.id) {
|
5899
5903
|
constructor = t.functionDeclaration(className, [], constructorBody);
|
5900
5904
|
body.push(constructor);
|
5901
5905
|
} else {
|
5902
|
-
|
5906
|
+
var constructorName = null;
|
5907
|
+
// when a class has no parent and there is only a constructor or no body
|
5908
|
+
// then the constructor is not wrapped in a closure and needs to be named
|
5909
|
+
var containsOnlyConstructor = classBody.length === 1 && classBody[0].key.name === "constructor";
|
5910
|
+
if (!this.hasSuper && (classBody.length === 0 || containsOnlyConstructor)) {
|
5911
|
+
constructorName = className;
|
5912
|
+
}
|
5913
|
+
|
5914
|
+
constructor = t.functionExpression(constructorName, [], constructorBody);
|
5903
5915
|
body.push(t.variableDeclaration("var", [
|
5904
5916
|
t.variableDeclarator(className, constructor)
|
5905
5917
|
]));
|
@@ -6718,7 +6730,7 @@ var loose = function (node, parent, scope, file) {
|
|
6718
6730
|
var left = node.left;
|
6719
6731
|
var declar, id;
|
6720
6732
|
|
6721
|
-
if (t.isIdentifier(left) || t.isPattern(left)) {
|
6733
|
+
if (t.isIdentifier(left) || t.isPattern(left) || t.isMemberExpression(left)) {
|
6722
6734
|
// for (i of test), for ({ i } of test)
|
6723
6735
|
id = left;
|
6724
6736
|
} else if (t.isVariableDeclaration(left)) {
|
@@ -6779,7 +6791,7 @@ var spec = function (node, parent, scope, file) {
|
|
6779
6791
|
var stepKey = scope.generateUidIdentifier("step");
|
6780
6792
|
var stepValue = t.memberExpression(stepKey, t.identifier("value"));
|
6781
6793
|
|
6782
|
-
if (t.isIdentifier(left) || t.isPattern(left)) {
|
6794
|
+
if (t.isIdentifier(left) || t.isPattern(left) || t.isMemberExpression(left)) {
|
6783
6795
|
// for (i of test), for ({ i } of test)
|
6784
6796
|
declar = t.expressionStatement(t.assignmentExpression("=", left, stepValue));
|
6785
6797
|
} else if (t.isVariableDeclaration(left)) {
|
@@ -8116,6 +8128,9 @@ module.exports = {
|
|
8116
8128
|
"validation.react": require("./validation/react"),
|
8117
8129
|
"spec.blockScopedFunctions": require("./spec/block-scoped-functions"),
|
8118
8130
|
|
8131
|
+
// needs to be before `_aliasFunction`
|
8132
|
+
"es6.arrowFunctions": require("./es6/arrow-functions"),
|
8133
|
+
|
8119
8134
|
"playground.malletOperator": require("./playground/mallet-operator"),
|
8120
8135
|
"playground.methodBinding": require("./playground/method-binding"),
|
8121
8136
|
"playground.memoizationOperator": require("./playground/memoization-operator"),
|
@@ -8131,9 +8146,6 @@ module.exports = {
|
|
8131
8146
|
// needs to be before `_aliasFunction`
|
8132
8147
|
"es7.comprehensions": require("./es7/comprehensions"),
|
8133
8148
|
|
8134
|
-
// needs to be before `_aliasFunction`
|
8135
|
-
"es6.arrowFunctions": require("./es6/arrow-functions"),
|
8136
|
-
|
8137
8149
|
"es6.classes": require("./es6/classes"),
|
8138
8150
|
|
8139
8151
|
asyncToGenerator: require("./other/async-to-generator"),
|
@@ -8671,10 +8683,17 @@ var JSX_ANNOTATION_REGEX = /^\*\s*@jsx\s+([^\s]+)/;
|
|
8671
8683
|
exports.Program = function (node, parent, scope, file) {
|
8672
8684
|
var id = "React.createElement";
|
8673
8685
|
|
8674
|
-
var
|
8675
|
-
|
8686
|
+
for (var i = 0; i < file.ast.comments.length; i++) {
|
8687
|
+
var comment = file.ast.comments[i];
|
8676
8688
|
var matches = JSX_ANNOTATION_REGEX.exec(comment.value);
|
8677
|
-
if (matches)
|
8689
|
+
if (matches) {
|
8690
|
+
id = matches[1];
|
8691
|
+
if (id === "React.DOM") {
|
8692
|
+
throw file.errorWithNode(comment, "The @jsx React.DOM pragma has been deprecated as of React 0.12");
|
8693
|
+
} else {
|
8694
|
+
break;
|
8695
|
+
}
|
8696
|
+
}
|
8678
8697
|
}
|
8679
8698
|
|
8680
8699
|
file.set("jsxIdentifier", id.split(".").map(t.identifier).reduce(function (object, property) {
|
@@ -10273,7 +10292,6 @@ module.exports={
|
|
10273
10292
|
"AssignmentPattern": ["Pattern"],
|
10274
10293
|
|
10275
10294
|
"Property": ["UserWhitespacable"],
|
10276
|
-
"JSXElement": ["UserWhitespacable", "Expression"],
|
10277
10295
|
|
10278
10296
|
"ArrayExpression": ["Expression"],
|
10279
10297
|
"AssignmentExpression": ["Expression"],
|
@@ -10299,7 +10317,7 @@ module.exports={
|
|
10299
10317
|
|
10300
10318
|
"JSXAttribute": ["JSX"],
|
10301
10319
|
"JSXClosingElement": ["JSX"],
|
10302
|
-
"JSXElement": ["JSX"],
|
10320
|
+
"JSXElement": ["JSX", "Expression"],
|
10303
10321
|
"JSXEmptyExpression": ["JSX"],
|
10304
10322
|
"JSXExpressionContainer": ["JSX"],
|
10305
10323
|
"JSXIdentifier": ["JSX"],
|
@@ -25225,6 +25243,7 @@ function hasOwnProperty(obj, prop) {
|
|
25225
25243
|
|
25226
25244
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
25227
25245
|
},{"./support/isBuffer":160,"_process":145,"inherits":142}],162:[function(require,module,exports){
|
25246
|
+
(function (process){
|
25228
25247
|
'use strict';
|
25229
25248
|
var escapeStringRegexp = require('escape-string-regexp');
|
25230
25249
|
var ansiStyles = require('ansi-styles');
|
@@ -25232,13 +25251,23 @@ var stripAnsi = require('strip-ansi');
|
|
25232
25251
|
var hasAnsi = require('has-ansi');
|
25233
25252
|
var supportsColor = require('supports-color');
|
25234
25253
|
var defineProps = Object.defineProperties;
|
25235
|
-
|
25254
|
+
|
25255
|
+
function Chalk(options) {
|
25256
|
+
// detect mode if not set manually
|
25257
|
+
this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled;
|
25258
|
+
}
|
25259
|
+
|
25260
|
+
// use bright blue on Windows as the normal blue color is illegible
|
25261
|
+
if (process.platform === 'win32') {
|
25262
|
+
ansiStyles.blue.open = '\u001b[94m';
|
25263
|
+
}
|
25236
25264
|
|
25237
25265
|
function build(_styles) {
|
25238
25266
|
var builder = function builder() {
|
25239
25267
|
return applyStyle.apply(builder, arguments);
|
25240
25268
|
};
|
25241
25269
|
builder._styles = _styles;
|
25270
|
+
builder.enabled = this.enabled;
|
25242
25271
|
// __proto__ is used because we must return a function, but there is
|
25243
25272
|
// no way to create a function with a different prototype.
|
25244
25273
|
builder.__proto__ = proto;
|
@@ -25248,14 +25277,12 @@ function build(_styles) {
|
|
25248
25277
|
var styles = (function () {
|
25249
25278
|
var ret = {};
|
25250
25279
|
|
25251
|
-
ansiStyles.grey = ansiStyles.gray;
|
25252
|
-
|
25253
25280
|
Object.keys(ansiStyles).forEach(function (key) {
|
25254
25281
|
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
|
25255
25282
|
|
25256
25283
|
ret[key] = {
|
25257
25284
|
get: function () {
|
25258
|
-
return build(this._styles.concat(key));
|
25285
|
+
return build.call(this, this._styles.concat(key));
|
25259
25286
|
}
|
25260
25287
|
};
|
25261
25288
|
});
|
@@ -25277,14 +25304,15 @@ function applyStyle() {
|
|
25277
25304
|
}
|
25278
25305
|
}
|
25279
25306
|
|
25280
|
-
if (!
|
25307
|
+
if (!this.enabled || !str) {
|
25281
25308
|
return str;
|
25282
25309
|
}
|
25283
25310
|
|
25284
|
-
/*jshint validthis: true*/
|
25311
|
+
/*jshint validthis: true */
|
25285
25312
|
var nestedStyles = this._styles;
|
25286
25313
|
|
25287
|
-
|
25314
|
+
var i = nestedStyles.length;
|
25315
|
+
while (i--) {
|
25288
25316
|
var code = ansiStyles[nestedStyles[i]];
|
25289
25317
|
// Replace any instances already present with a re-opening code
|
25290
25318
|
// otherwise only the part of the string until said closing code
|
@@ -25301,7 +25329,7 @@ function init() {
|
|
25301
25329
|
Object.keys(styles).forEach(function (name) {
|
25302
25330
|
ret[name] = {
|
25303
25331
|
get: function () {
|
25304
|
-
return build([name]);
|
25332
|
+
return build.call(this, [name]);
|
25305
25333
|
}
|
25306
25334
|
};
|
25307
25335
|
});
|
@@ -25309,58 +25337,71 @@ function init() {
|
|
25309
25337
|
return ret;
|
25310
25338
|
}
|
25311
25339
|
|
25312
|
-
defineProps(
|
25313
|
-
|
25314
|
-
chalk.styles = ansiStyles;
|
25315
|
-
chalk.hasColor = hasAnsi;
|
25316
|
-
chalk.stripColor = stripAnsi;
|
25317
|
-
chalk.supportsColor = supportsColor;
|
25340
|
+
defineProps(Chalk.prototype, init());
|
25318
25341
|
|
25319
|
-
|
25320
|
-
|
25321
|
-
|
25322
|
-
|
25342
|
+
module.exports = new Chalk();
|
25343
|
+
module.exports.styles = ansiStyles;
|
25344
|
+
module.exports.hasColor = hasAnsi;
|
25345
|
+
module.exports.stripColor = stripAnsi;
|
25346
|
+
module.exports.supportsColor = supportsColor;
|
25323
25347
|
|
25324
|
-
},
|
25348
|
+
}).call(this,require('_process'))
|
25349
|
+
},{"_process":145,"ansi-styles":163,"escape-string-regexp":164,"has-ansi":165,"strip-ansi":167,"supports-color":169}],163:[function(require,module,exports){
|
25325
25350
|
'use strict';
|
25326
|
-
|
25327
|
-
|
25328
|
-
|
25329
|
-
|
25330
|
-
|
25331
|
-
|
25332
|
-
|
25333
|
-
|
25334
|
-
|
25335
|
-
|
25336
|
-
|
25337
|
-
|
25338
|
-
|
25339
|
-
|
25340
|
-
|
25341
|
-
|
25342
|
-
|
25343
|
-
|
25344
|
-
|
25345
|
-
|
25346
|
-
|
25347
|
-
|
25348
|
-
|
25349
|
-
|
25350
|
-
|
25351
|
-
|
25352
|
-
|
25353
|
-
|
25354
|
-
|
25355
|
-
|
25356
|
-
|
25357
|
-
|
25358
|
-
|
25359
|
-
|
25360
|
-
|
25361
|
-
|
25362
|
-
|
25363
|
-
|
25351
|
+
|
25352
|
+
var styles = module.exports = {
|
25353
|
+
modifiers: {
|
25354
|
+
reset: [0, 0],
|
25355
|
+
bold: [1, 22], // 21 isn't widely supported and 22 does the same thing
|
25356
|
+
dim: [2, 22],
|
25357
|
+
italic: [3, 23],
|
25358
|
+
underline: [4, 24],
|
25359
|
+
inverse: [7, 27],
|
25360
|
+
hidden: [8, 28],
|
25361
|
+
strikethrough: [9, 29]
|
25362
|
+
},
|
25363
|
+
colors: {
|
25364
|
+
black: [30, 39],
|
25365
|
+
red: [31, 39],
|
25366
|
+
green: [32, 39],
|
25367
|
+
yellow: [33, 39],
|
25368
|
+
blue: [34, 39],
|
25369
|
+
magenta: [35, 39],
|
25370
|
+
cyan: [36, 39],
|
25371
|
+
white: [37, 39],
|
25372
|
+
gray: [90, 39]
|
25373
|
+
},
|
25374
|
+
bgColors: {
|
25375
|
+
bgBlack: [40, 49],
|
25376
|
+
bgRed: [41, 49],
|
25377
|
+
bgGreen: [42, 49],
|
25378
|
+
bgYellow: [43, 49],
|
25379
|
+
bgBlue: [44, 49],
|
25380
|
+
bgMagenta: [45, 49],
|
25381
|
+
bgCyan: [46, 49],
|
25382
|
+
bgWhite: [47, 49]
|
25383
|
+
}
|
25384
|
+
};
|
25385
|
+
|
25386
|
+
// fix humans
|
25387
|
+
styles.colors.grey = styles.colors.gray;
|
25388
|
+
|
25389
|
+
Object.keys(styles).forEach(function (groupName) {
|
25390
|
+
var group = styles[groupName];
|
25391
|
+
|
25392
|
+
Object.keys(group).forEach(function (styleName) {
|
25393
|
+
var style = group[styleName];
|
25394
|
+
|
25395
|
+
styles[styleName] = group[styleName] = {
|
25396
|
+
open: '\u001b[' + style[0] + 'm',
|
25397
|
+
close: '\u001b[' + style[1] + 'm'
|
25398
|
+
};
|
25399
|
+
});
|
25400
|
+
|
25401
|
+
Object.defineProperty(styles, groupName, {
|
25402
|
+
value: group,
|
25403
|
+
enumerable: false
|
25404
|
+
});
|
25364
25405
|
});
|
25365
25406
|
|
25366
25407
|
},{}],164:[function(require,module,exports){
|
@@ -25385,7 +25426,7 @@ module.exports = re.test.bind(re);
|
|
25385
25426
|
},{"ansi-regex":166}],166:[function(require,module,exports){
|
25386
25427
|
'use strict';
|
25387
25428
|
module.exports = function () {
|
25388
|
-
return
|
25429
|
+
return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g;
|
25389
25430
|
};
|
25390
25431
|
|
25391
25432
|
},{}],167:[function(require,module,exports){
|
@@ -25401,12 +25442,23 @@ arguments[4][166][0].apply(exports,arguments)
|
|
25401
25442
|
},{"dup":166}],169:[function(require,module,exports){
|
25402
25443
|
(function (process){
|
25403
25444
|
'use strict';
|
25445
|
+
var argv = process.argv;
|
25446
|
+
|
25404
25447
|
module.exports = (function () {
|
25405
|
-
if (
|
25448
|
+
if ('FORCE_COLOR' in process.env) {
|
25449
|
+
return true;
|
25450
|
+
}
|
25451
|
+
|
25452
|
+
if (argv.indexOf('--no-color') !== -1 ||
|
25453
|
+
argv.indexOf('--no-colors') !== -1 ||
|
25454
|
+
argv.indexOf('--color=false') !== -1) {
|
25406
25455
|
return false;
|
25407
25456
|
}
|
25408
25457
|
|
25409
|
-
if (
|
25458
|
+
if (argv.indexOf('--color') !== -1 ||
|
25459
|
+
argv.indexOf('--colors') !== -1 ||
|
25460
|
+
argv.indexOf('--color=true') !== -1 ||
|
25461
|
+
argv.indexOf('--color=always') !== -1) {
|
25410
25462
|
return true;
|
25411
25463
|
}
|
25412
25464
|
|
@@ -25414,6 +25466,10 @@ module.exports = (function () {
|
|
25414
25466
|
return false;
|
25415
25467
|
}
|
25416
25468
|
|
25469
|
+
if ('UPSTART_JOB' in process.env) {
|
25470
|
+
return false;
|
25471
|
+
}
|
25472
|
+
|
25417
25473
|
if (process.platform === 'win32') {
|
25418
25474
|
return true;
|
25419
25475
|
}
|
@@ -25436,7 +25492,7 @@ module.exports = (function () {
|
|
25436
25492
|
}).call(this,require('_process'))
|
25437
25493
|
},{"_process":145}],170:[function(require,module,exports){
|
25438
25494
|
/**
|
25439
|
-
* Core.js 0.
|
25495
|
+
* Core.js 0.6.1
|
25440
25496
|
* https://github.com/zloirock/core-js
|
25441
25497
|
* License: http://rock.mit-license.org
|
25442
25498
|
* © 2015 Denis Pushkarev
|
@@ -25502,16 +25558,12 @@ var OBJECT = 'Object'
|
|
25502
25558
|
, html = document && document.documentElement
|
25503
25559
|
, navigator = global.navigator
|
25504
25560
|
, define = global.define
|
25561
|
+
, console = global.console || {}
|
25505
25562
|
, ArrayProto = Array[PROTOTYPE]
|
25506
25563
|
, ObjectProto = Object[PROTOTYPE]
|
25507
25564
|
, FunctionProto = Function[PROTOTYPE]
|
25508
25565
|
, Infinity = 1 / 0
|
25509
|
-
, DOT = '.'
|
25510
|
-
// Methods from https://github.com/DeveloperToolsWG/console-object/blob/master/api.md
|
25511
|
-
, CONSOLE_METHODS = 'assert,clear,count,debug,dir,dirxml,error,exception,' +
|
25512
|
-
'group,groupCollapsed,groupEnd,info,isIndependentlyComposed,log,' +
|
25513
|
-
'markTimeline,profile,profileEnd,table,time,timeEnd,timeline,' +
|
25514
|
-
'timelineEnd,timeStamp,trace,warn';
|
25566
|
+
, DOT = '.';
|
25515
25567
|
|
25516
25568
|
// http://jsperf.com/core-js-isobject
|
25517
25569
|
function isObject(it){
|
@@ -25599,12 +25651,6 @@ function invoke(fn, args, that){
|
|
25599
25651
|
: fn.call(that, args[0], args[1], args[2], args[3], args[4]);
|
25600
25652
|
} return fn.apply(that, args);
|
25601
25653
|
}
|
25602
|
-
function construct(target, argumentsList /*, newTarget*/){
|
25603
|
-
var proto = assertFunction(arguments.length < 3 ? target : arguments[2])[PROTOTYPE]
|
25604
|
-
, instance = create(isObject(proto) ? proto : ObjectProto)
|
25605
|
-
, result = apply.call(target, instance, argumentsList);
|
25606
|
-
return isObject(result) ? result : instance;
|
25607
|
-
}
|
25608
25654
|
|
25609
25655
|
// Object:
|
25610
25656
|
var create = Object.create
|
@@ -25846,32 +25892,97 @@ function assignHidden(target, src){
|
|
25846
25892
|
|
25847
25893
|
var SYMBOL_UNSCOPABLES = getWellKnownSymbol('unscopables')
|
25848
25894
|
, ArrayUnscopables = ArrayProto[SYMBOL_UNSCOPABLES] || {}
|
25849
|
-
,
|
25895
|
+
, SYMBOL_TAG = getWellKnownSymbol(TO_STRING_TAG)
|
25896
|
+
, SYMBOL_SPECIES = getWellKnownSymbol('species')
|
25897
|
+
, SYMBOL_ITERATOR;
|
25850
25898
|
function setSpecies(C){
|
25851
|
-
if(framework || !isNative(C))defineProperty(C, SYMBOL_SPECIES, {
|
25899
|
+
if(DESC && (framework || !isNative(C)))defineProperty(C, SYMBOL_SPECIES, {
|
25852
25900
|
configurable: true,
|
25853
25901
|
get: returnThis
|
25854
25902
|
});
|
25903
|
+
}
|
25904
|
+
|
25905
|
+
/******************************************************************************
|
25906
|
+
* Module : common.export *
|
25907
|
+
******************************************************************************/
|
25908
|
+
|
25909
|
+
var NODE = cof(process) == PROCESS
|
25910
|
+
, core = {}
|
25911
|
+
, path = framework ? global : core
|
25912
|
+
, old = global.core
|
25913
|
+
, exportGlobal
|
25914
|
+
// type bitmap
|
25915
|
+
, FORCED = 1
|
25916
|
+
, GLOBAL = 2
|
25917
|
+
, STATIC = 4
|
25918
|
+
, PROTO = 8
|
25919
|
+
, BIND = 16
|
25920
|
+
, WRAP = 32;
|
25921
|
+
function $define(type, name, source){
|
25922
|
+
var key, own, out, exp
|
25923
|
+
, isGlobal = type & GLOBAL
|
25924
|
+
, target = isGlobal ? global : (type & STATIC)
|
25925
|
+
? global[name] : (global[name] || ObjectProto)[PROTOTYPE]
|
25926
|
+
, exports = isGlobal ? core : core[name] || (core[name] = {});
|
25927
|
+
if(isGlobal)source = name;
|
25928
|
+
for(key in source){
|
25929
|
+
// there is a similar native
|
25930
|
+
own = !(type & FORCED) && target && key in target
|
25931
|
+
&& (!isFunction(target[key]) || isNative(target[key]));
|
25932
|
+
// export native or passed
|
25933
|
+
out = (own ? target : source)[key];
|
25934
|
+
// prevent global pollution for namespaces
|
25935
|
+
if(!framework && isGlobal && !isFunction(target[key]))exp = source[key];
|
25936
|
+
// bind timers to global for call from export context
|
25937
|
+
else if(type & BIND && own)exp = ctx(out, global);
|
25938
|
+
// wrap global constructors for prevent change them in library
|
25939
|
+
else if(type & WRAP && !framework && target[key] == out){
|
25940
|
+
exp = function(param){
|
25941
|
+
return this instanceof out ? new out(param) : out(param);
|
25942
|
+
}
|
25943
|
+
exp[PROTOTYPE] = out[PROTOTYPE];
|
25944
|
+
} else exp = type & PROTO && isFunction(out) ? ctx(call, out) : out;
|
25945
|
+
// extend global
|
25946
|
+
if(framework && target && !own){
|
25947
|
+
if(isGlobal)target[key] = out;
|
25948
|
+
else delete target[key] && hidden(target, key, out);
|
25949
|
+
}
|
25950
|
+
// export
|
25951
|
+
if(exports[key] != out)hidden(exports, key, exp);
|
25952
|
+
}
|
25855
25953
|
}
|
25856
|
-
|
25857
|
-
|
25858
|
-
|
25859
|
-
|
25860
|
-
|
25861
|
-
|
25954
|
+
// CommonJS export
|
25955
|
+
if(typeof module != 'undefined' && module.exports)module.exports = core;
|
25956
|
+
// RequireJS export
|
25957
|
+
else if(isFunction(define) && define.amd)define(function(){return core});
|
25958
|
+
// Export to global object
|
25959
|
+
else exportGlobal = true;
|
25960
|
+
if(exportGlobal || framework){
|
25961
|
+
core.noConflict = function(){
|
25962
|
+
global.core = old;
|
25963
|
+
return core;
|
25964
|
+
}
|
25965
|
+
global.core = core;
|
25966
|
+
}
|
25967
|
+
|
25968
|
+
/******************************************************************************
|
25969
|
+
* Module : common.iterators *
|
25970
|
+
******************************************************************************/
|
25971
|
+
|
25972
|
+
SYMBOL_ITERATOR = getWellKnownSymbol(ITERATOR);
|
25973
|
+
var ITER = safeSymbol('iter')
|
25862
25974
|
, KEY = 1
|
25863
25975
|
, VALUE = 2
|
25864
25976
|
, Iterators = {}
|
25865
25977
|
, IteratorPrototype = {}
|
25866
|
-
|
25867
|
-
// Safari define byggy iterators w/o `next`
|
25978
|
+
// Safari has byggy iterators w/o `next`
|
25868
25979
|
, BUGGY_ITERATORS = 'keys' in ArrayProto && !('next' in [].keys());
|
25869
25980
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
25870
25981
|
setIterator(IteratorPrototype, returnThis);
|
25871
25982
|
function setIterator(O, value){
|
25872
25983
|
hidden(O, SYMBOL_ITERATOR, value);
|
25873
25984
|
// Add iterator for FF iterator protocol
|
25874
|
-
|
25985
|
+
FF_ITERATOR in ArrayProto && hidden(O, FF_ITERATOR, value);
|
25875
25986
|
}
|
25876
25987
|
function createIterator(Constructor, NAME, next, proto){
|
25877
25988
|
Constructor[PROTOTYPE] = create(proto || IteratorPrototype, {next: descriptor(1, next)});
|
@@ -25934,72 +26045,38 @@ function getIterator(it){
|
|
25934
26045
|
function stepCall(fn, value, entries){
|
25935
26046
|
return entries ? invoke(fn, value) : fn(value);
|
25936
26047
|
}
|
25937
|
-
function
|
25938
|
-
var
|
25939
|
-
|
25940
|
-
,
|
25941
|
-
|
26048
|
+
function checkDangerIterClosing(fn){
|
26049
|
+
var danger = true;
|
26050
|
+
var O = {
|
26051
|
+
next: function(){ throw 1 },
|
26052
|
+
'return': function(){ danger = false }
|
26053
|
+
};
|
26054
|
+
O[SYMBOL_ITERATOR] = returnThis;
|
26055
|
+
try {
|
26056
|
+
fn(O);
|
26057
|
+
} catch(e){}
|
26058
|
+
return danger;
|
25942
26059
|
}
|
25943
|
-
|
25944
|
-
|
25945
|
-
|
25946
|
-
, core = {}
|
25947
|
-
, path = framework ? global : core
|
25948
|
-
, old = global.core
|
25949
|
-
, exportGlobal
|
25950
|
-
// type bitmap
|
25951
|
-
, FORCED = 1
|
25952
|
-
, GLOBAL = 2
|
25953
|
-
, STATIC = 4
|
25954
|
-
, PROTO = 8
|
25955
|
-
, BIND = 16
|
25956
|
-
, WRAP = 32
|
25957
|
-
, SIMPLE = 64;
|
25958
|
-
function $define(type, name, source){
|
25959
|
-
var key, own, out, exp
|
25960
|
-
, isGlobal = type & GLOBAL
|
25961
|
-
, target = isGlobal ? global : (type & STATIC)
|
25962
|
-
? global[name] : (global[name] || ObjectProto)[PROTOTYPE]
|
25963
|
-
, exports = isGlobal ? core : core[name] || (core[name] = {});
|
25964
|
-
if(isGlobal)source = name;
|
25965
|
-
for(key in source){
|
25966
|
-
// there is a similar native
|
25967
|
-
own = !(type & FORCED) && target && key in target
|
25968
|
-
&& (!isFunction(target[key]) || isNative(target[key]));
|
25969
|
-
// export native or passed
|
25970
|
-
out = (own ? target : source)[key];
|
25971
|
-
// prevent global pollution for namespaces
|
25972
|
-
if(!framework && isGlobal && !isFunction(target[key]))exp = source[key];
|
25973
|
-
// bind timers to global for call from export context
|
25974
|
-
else if(type & BIND && own)exp = ctx(out, global);
|
25975
|
-
// wrap global constructors for prevent change them in library
|
25976
|
-
else if(type & WRAP && !framework && target[key] == out){
|
25977
|
-
exp = function(param){
|
25978
|
-
return this instanceof out ? new out(param) : out(param);
|
25979
|
-
}
|
25980
|
-
exp[PROTOTYPE] = out[PROTOTYPE];
|
25981
|
-
} else exp = type & PROTO && isFunction(out) ? ctx(call, out) : out;
|
25982
|
-
// extend global
|
25983
|
-
if(framework && target && !own){
|
25984
|
-
if(isGlobal || type & SIMPLE)target[key] = out;
|
25985
|
-
else delete target[key] && hidden(target, key, out);
|
25986
|
-
}
|
25987
|
-
// export
|
25988
|
-
if(exports[key] != out)hidden(exports, key, exp);
|
25989
|
-
}
|
26060
|
+
function closeIterator(iterator){
|
26061
|
+
var ret = iterator['return'];
|
26062
|
+
if(ret !== undefined)ret.call(iterator);
|
25990
26063
|
}
|
25991
|
-
|
25992
|
-
|
25993
|
-
|
25994
|
-
|
25995
|
-
|
25996
|
-
|
25997
|
-
if(exportGlobal || framework){
|
25998
|
-
core.noConflict = function(){
|
25999
|
-
global.core = old;
|
26000
|
-
return core;
|
26064
|
+
function safeIterClose(exec, iterator){
|
26065
|
+
try {
|
26066
|
+
exec(iterator);
|
26067
|
+
} catch(e){
|
26068
|
+
closeIterator(iterator);
|
26069
|
+
throw e;
|
26001
26070
|
}
|
26002
|
-
|
26071
|
+
}
|
26072
|
+
function forOf(iterable, entries, fn, that){
|
26073
|
+
safeIterClose(function(iterator){
|
26074
|
+
var f = ctx(fn, that, entries ? 2 : 1)
|
26075
|
+
, step;
|
26076
|
+
while(!(step = iterator.next()).done)if(stepCall(f, step.value, entries) === false){
|
26077
|
+
return closeIterator(iterator);
|
26078
|
+
}
|
26079
|
+
}, getIterator(iterable));
|
26003
26080
|
}
|
26004
26081
|
|
26005
26082
|
/******************************************************************************
|
@@ -26037,7 +26114,7 @@ if(exportGlobal || framework){
|
|
26037
26114
|
: SymbolRegistry[key] = Symbol(key);
|
26038
26115
|
},
|
26039
26116
|
// 19.4.2.4 Symbol.iterator
|
26040
|
-
iterator: SYMBOL_ITERATOR,
|
26117
|
+
iterator: SYMBOL_ITERATOR || getWellKnownSymbol(ITERATOR),
|
26041
26118
|
// 19.4.2.5 Symbol.keyFor(sym)
|
26042
26119
|
keyFor: part.call(keyOf, SymbolRegistry),
|
26043
26120
|
// 19.4.2.10 Symbol.species
|
@@ -26081,13 +26158,18 @@ if(exportGlobal || framework){
|
|
26081
26158
|
return result;
|
26082
26159
|
}
|
26083
26160
|
});
|
26161
|
+
|
26162
|
+
// 20.2.1.9 Math[@@toStringTag]
|
26163
|
+
setToStringTag(Math, MATH, true);
|
26164
|
+
// 24.3.3 JSON[@@toStringTag]
|
26165
|
+
setToStringTag(global.JSON, 'JSON', true);
|
26084
26166
|
}(safeSymbol('tag'), {}, {}, true);
|
26085
26167
|
|
26086
26168
|
/******************************************************************************
|
26087
|
-
* Module : es6.object
|
26169
|
+
* Module : es6.object.statics *
|
26088
26170
|
******************************************************************************/
|
26089
26171
|
|
26090
|
-
!function(
|
26172
|
+
!function(){
|
26091
26173
|
var objectStatic = {
|
26092
26174
|
// 19.1.3.1 Object.assign(target, source)
|
26093
26175
|
assign: assign,
|
@@ -26112,20 +26194,7 @@ if(exportGlobal || framework){
|
|
26112
26194
|
}
|
26113
26195
|
}();
|
26114
26196
|
$define(STATIC, OBJECT, objectStatic);
|
26115
|
-
|
26116
|
-
if(framework){
|
26117
|
-
// 19.1.3.6 Object.prototype.toString()
|
26118
|
-
tmp[SYMBOL_TAG] = DOT;
|
26119
|
-
if(cof(tmp) != DOT)hidden(ObjectProto, TO_STRING, function(){
|
26120
|
-
return '[object ' + classof(this) + ']';
|
26121
|
-
});
|
26122
|
-
}
|
26123
|
-
|
26124
|
-
// 20.2.1.9 Math[@@toStringTag]
|
26125
|
-
setToStringTag(Math, MATH, true);
|
26126
|
-
// 24.3.3 JSON[@@toStringTag]
|
26127
|
-
setToStringTag(global.JSON, 'JSON', true);
|
26128
|
-
}({});
|
26197
|
+
}();
|
26129
26198
|
|
26130
26199
|
/******************************************************************************
|
26131
26200
|
* Module : es6.object.statics-accept-primitives *
|
@@ -26168,7 +26237,7 @@ if(exportGlobal || framework){
|
|
26168
26237
|
}();
|
26169
26238
|
|
26170
26239
|
/******************************************************************************
|
26171
|
-
* Module : es6.number
|
26240
|
+
* Module : es6.number.statics *
|
26172
26241
|
******************************************************************************/
|
26173
26242
|
|
26174
26243
|
!function(isInteger){
|
@@ -26388,11 +26457,11 @@ if(exportGlobal || framework){
|
|
26388
26457
|
}(String.fromCharCode);
|
26389
26458
|
|
26390
26459
|
/******************************************************************************
|
26391
|
-
* Module : es6.array
|
26460
|
+
* Module : es6.array.statics *
|
26392
26461
|
******************************************************************************/
|
26393
26462
|
|
26394
26463
|
!function(){
|
26395
|
-
$define(STATIC, ARRAY, {
|
26464
|
+
$define(STATIC + FORCED * checkDangerIterClosing(Array.from), ARRAY, {
|
26396
26465
|
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
|
26397
26466
|
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
|
26398
26467
|
var O = Object(assertDefined(arrayLike))
|
@@ -26400,15 +26469,26 @@ if(exportGlobal || framework){
|
|
26400
26469
|
, mapping = mapfn !== undefined
|
26401
26470
|
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
|
26402
26471
|
, index = 0
|
26403
|
-
, length, result,
|
26404
|
-
if(isIterable(O))
|
26405
|
-
result
|
26406
|
-
|
26407
|
-
|
26472
|
+
, length, result, step;
|
26473
|
+
if(isIterable(O)){
|
26474
|
+
result = new (generic(this, Array));
|
26475
|
+
safeIterClose(function(iterator){
|
26476
|
+
for(; !(step = iterator.next()).done; index++){
|
26477
|
+
result[index] = mapping ? f(step.value, index) : step.value;
|
26478
|
+
}
|
26479
|
+
}, getIterator(O));
|
26480
|
+
} else {
|
26481
|
+
result = new (generic(this, Array))(length = toLength(O.length));
|
26482
|
+
for(; length > index; index++){
|
26483
|
+
result[index] = mapping ? f(O[index], index) : O[index];
|
26484
|
+
}
|
26408
26485
|
}
|
26409
26486
|
result.length = index;
|
26410
26487
|
return result;
|
26411
|
-
}
|
26488
|
+
}
|
26489
|
+
});
|
26490
|
+
|
26491
|
+
$define(STATIC, ARRAY, {
|
26412
26492
|
// 22.1.2.3 Array.of( ...items)
|
26413
26493
|
of: function(/* ...args */){
|
26414
26494
|
var index = 0
|
@@ -26420,6 +26500,14 @@ if(exportGlobal || framework){
|
|
26420
26500
|
}
|
26421
26501
|
});
|
26422
26502
|
|
26503
|
+
setSpecies(Array);
|
26504
|
+
}();
|
26505
|
+
|
26506
|
+
/******************************************************************************
|
26507
|
+
* Module : es6.array.prototype *
|
26508
|
+
******************************************************************************/
|
26509
|
+
|
26510
|
+
!function(){
|
26423
26511
|
$define(PROTO, ARRAY, {
|
26424
26512
|
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
|
26425
26513
|
copyWithin: function(target /* = 0 */, start /* = 0, end = @length */){
|
@@ -26465,9 +26553,7 @@ if(exportGlobal || framework){
|
|
26465
26553
|
ArrayUnscopables[it] = true;
|
26466
26554
|
});
|
26467
26555
|
SYMBOL_UNSCOPABLES in ArrayProto || hidden(ArrayProto, SYMBOL_UNSCOPABLES, ArrayUnscopables);
|
26468
|
-
}
|
26469
|
-
|
26470
|
-
setSpecies(Array);
|
26556
|
+
}
|
26471
26557
|
}();
|
26472
26558
|
|
26473
26559
|
/******************************************************************************
|
@@ -26597,30 +26683,55 @@ $define(GLOBAL + BIND, {
|
|
26597
26683
|
!function(Promise, test){
|
26598
26684
|
isFunction(Promise) && isFunction(Promise.resolve)
|
26599
26685
|
&& Promise.resolve(test = new Promise(function(){})) == test
|
26600
|
-
|| function(asap,
|
26601
|
-
function isThenable(
|
26686
|
+
|| function(asap, RECORD){
|
26687
|
+
function isThenable(it){
|
26602
26688
|
var then;
|
26603
|
-
if(isObject(
|
26689
|
+
if(isObject(it))then = it.then;
|
26604
26690
|
return isFunction(then) ? then : false;
|
26605
26691
|
}
|
26606
|
-
function
|
26607
|
-
var
|
26608
|
-
|
26609
|
-
|
26610
|
-
|
26611
|
-
|
26612
|
-
|
26692
|
+
function handledRejectionOrHasOnRejected(promise){
|
26693
|
+
var record = promise[RECORD]
|
26694
|
+
, chain = record.c
|
26695
|
+
, i = 0
|
26696
|
+
, react;
|
26697
|
+
if(record.h)return true;
|
26698
|
+
while(chain.length > i){
|
26699
|
+
react = chain[i++];
|
26700
|
+
if(react.fail || handledRejectionOrHasOnRejected(react.P))return true;
|
26701
|
+
}
|
26702
|
+
}
|
26703
|
+
function notify(record, reject){
|
26704
|
+
var chain = record.c;
|
26705
|
+
if(reject || chain.length)asap(function(){
|
26706
|
+
var promise = record.p
|
26707
|
+
, value = record.v
|
26708
|
+
, ok = record.s == 1
|
26709
|
+
, i = 0;
|
26710
|
+
if(reject && !handledRejectionOrHasOnRejected(promise)){
|
26711
|
+
setTimeout(function(){
|
26712
|
+
if(!handledRejectionOrHasOnRejected(promise)){
|
26713
|
+
if(NODE){
|
26714
|
+
if(!process.emit('unhandledRejection', value, promise)){
|
26715
|
+
// default node.js behavior
|
26716
|
+
}
|
26717
|
+
} else if(isFunction(console.error)){
|
26718
|
+
console.error('Unhandled promise rejection', value);
|
26719
|
+
}
|
26720
|
+
}
|
26721
|
+
}, 1e3);
|
26722
|
+
} else while(chain.length > i)!function(react){
|
26613
26723
|
var cb = ok ? react.ok : react.fail
|
26614
26724
|
, ret, then;
|
26615
26725
|
try {
|
26616
26726
|
if(cb){
|
26617
|
-
|
26727
|
+
if(!ok)record.h = true;
|
26728
|
+
ret = cb === true ? value : cb(value);
|
26618
26729
|
if(ret === react.P){
|
26619
26730
|
react.rej(TypeError(PROMISE + '-chain cycle'));
|
26620
26731
|
} else if(then = isThenable(ret)){
|
26621
26732
|
then.call(ret, react.res, react.rej);
|
26622
26733
|
} else react.res(ret);
|
26623
|
-
} else react.rej(
|
26734
|
+
} else react.rej(value);
|
26624
26735
|
} catch(err){
|
26625
26736
|
react.rej(err);
|
26626
26737
|
}
|
@@ -26628,33 +26739,33 @@ $define(GLOBAL + BIND, {
|
|
26628
26739
|
chain.length = 0;
|
26629
26740
|
});
|
26630
26741
|
}
|
26631
|
-
function resolve(
|
26632
|
-
var
|
26742
|
+
function resolve(value){
|
26743
|
+
var record = this
|
26633
26744
|
, then, wrapper;
|
26634
|
-
if(
|
26635
|
-
|
26636
|
-
|
26745
|
+
if(record.d)return;
|
26746
|
+
record.d = true;
|
26747
|
+
record = record.r || record; // unwrap
|
26637
26748
|
try {
|
26638
|
-
if(then = isThenable(
|
26639
|
-
wrapper = {
|
26640
|
-
then.call(
|
26749
|
+
if(then = isThenable(value)){
|
26750
|
+
wrapper = {r: record, d: false}; // wrap
|
26751
|
+
then.call(value, ctx(resolve, wrapper, 1), ctx(reject, wrapper, 1));
|
26641
26752
|
} else {
|
26642
|
-
|
26643
|
-
|
26644
|
-
notify(
|
26753
|
+
record.v = value;
|
26754
|
+
record.s = 1;
|
26755
|
+
notify(record);
|
26645
26756
|
}
|
26646
26757
|
} catch(err){
|
26647
|
-
reject.call(wrapper || {
|
26758
|
+
reject.call(wrapper || {r: record, d: false}, err); // wrap
|
26648
26759
|
}
|
26649
26760
|
}
|
26650
|
-
function reject(
|
26651
|
-
var
|
26652
|
-
if(
|
26653
|
-
|
26654
|
-
|
26655
|
-
|
26656
|
-
|
26657
|
-
notify(
|
26761
|
+
function reject(value){
|
26762
|
+
var record = this;
|
26763
|
+
if(record.d)return;
|
26764
|
+
record.d = true;
|
26765
|
+
record = record.r || record; // unwrap
|
26766
|
+
record.v = value;
|
26767
|
+
record.s = 2;
|
26768
|
+
notify(record, true);
|
26658
26769
|
}
|
26659
26770
|
function getConstructor(C){
|
26660
26771
|
var S = assertObject(C)[SYMBOL_SPECIES];
|
@@ -26664,12 +26775,19 @@ $define(GLOBAL + BIND, {
|
|
26664
26775
|
Promise = function(executor){
|
26665
26776
|
assertFunction(executor);
|
26666
26777
|
assertInstance(this, Promise, PROMISE);
|
26667
|
-
var
|
26668
|
-
|
26778
|
+
var record = {
|
26779
|
+
p: this, // promise
|
26780
|
+
c: [], // chain
|
26781
|
+
s: 0, // state
|
26782
|
+
d: false, // done
|
26783
|
+
v: undefined, // value
|
26784
|
+
h: false // handled rejection
|
26785
|
+
};
|
26786
|
+
hidden(this, RECORD, record);
|
26669
26787
|
try {
|
26670
|
-
executor(ctx(resolve,
|
26788
|
+
executor(ctx(resolve, record, 1), ctx(reject, record, 1));
|
26671
26789
|
} catch(err){
|
26672
|
-
reject.call(
|
26790
|
+
reject.call(record, err);
|
26673
26791
|
}
|
26674
26792
|
}
|
26675
26793
|
assignHidden(Promise[PROTOTYPE], {
|
@@ -26682,9 +26800,9 @@ $define(GLOBAL + BIND, {
|
|
26682
26800
|
} , P = react.P = new (S != undefined ? S : Promise)(function(resolve, reject){
|
26683
26801
|
react.res = assertFunction(resolve);
|
26684
26802
|
react.rej = assertFunction(reject);
|
26685
|
-
}),
|
26686
|
-
|
26687
|
-
|
26803
|
+
}), record = this[RECORD];
|
26804
|
+
record.c.push(react);
|
26805
|
+
record.s && notify(record);
|
26688
26806
|
return P;
|
26689
26807
|
},
|
26690
26808
|
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
@@ -26727,13 +26845,13 @@ $define(GLOBAL + BIND, {
|
|
26727
26845
|
},
|
26728
26846
|
// 25.4.4.6 Promise.resolve(x)
|
26729
26847
|
resolve: function(x){
|
26730
|
-
return isObject(x) &&
|
26848
|
+
return isObject(x) && RECORD in x && getPrototypeOf(x) === this[PROTOTYPE]
|
26731
26849
|
? x : new (getConstructor(this))(function(resolve, reject){
|
26732
26850
|
resolve(x);
|
26733
26851
|
});
|
26734
26852
|
}
|
26735
26853
|
});
|
26736
|
-
}(nextTick || setImmediate, safeSymbol('
|
26854
|
+
}(nextTick || setImmediate, safeSymbol('record'));
|
26737
26855
|
setToStringTag(Promise, PROMISE);
|
26738
26856
|
setSpecies(Promise);
|
26739
26857
|
$define(GLOBAL + FORCED * !isNative(Promise), {Promise: Promise});
|
@@ -26788,7 +26906,7 @@ $define(GLOBAL + BIND, {
|
|
26788
26906
|
initFromIterable(that, iterable);
|
26789
26907
|
};
|
26790
26908
|
assignHidden(assignHidden(C[PROTOTYPE], methods), commonMethods);
|
26791
|
-
isWeak || defineProperty(C[PROTOTYPE], 'size', {get: function(){
|
26909
|
+
isWeak || !DESC || defineProperty(C[PROTOTYPE], 'size', {get: function(){
|
26792
26910
|
return assertDefined(this[SIZE]);
|
26793
26911
|
}});
|
26794
26912
|
} else {
|
@@ -26797,7 +26915,7 @@ $define(GLOBAL + BIND, {
|
|
26797
26915
|
, chain = inst[ADDER](isWeak ? {} : -0, 1)
|
26798
26916
|
, buggyZero;
|
26799
26917
|
// wrap to init collections from iterable
|
26800
|
-
if(
|
26918
|
+
if(checkDangerIterClosing(function(O){ new C(O) })){
|
26801
26919
|
C = function(iterable){
|
26802
26920
|
assertInstance(this, C, NAME);
|
26803
26921
|
return initFromIterable(new Native, iterable);
|
@@ -27097,7 +27215,12 @@ $define(GLOBAL + BIND, {
|
|
27097
27215
|
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
|
27098
27216
|
apply: ctx(call, apply, 3),
|
27099
27217
|
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
|
27100
|
-
construct:
|
27218
|
+
construct: function(target, argumentsList /*, newTarget*/){
|
27219
|
+
var proto = assertFunction(arguments.length < 3 ? target : arguments[2])[PROTOTYPE]
|
27220
|
+
, instance = create(isObject(proto) ? proto : ObjectProto)
|
27221
|
+
, result = apply.call(target, instance, argumentsList);
|
27222
|
+
return isObject(result) ? result : instance;
|
27223
|
+
},
|
27101
27224
|
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
|
27102
27225
|
defineProperty: wrap(defineProperty),
|
27103
27226
|
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
|
@@ -27171,8 +27294,17 @@ $define(GLOBAL + BIND, {
|
|
27171
27294
|
}
|
27172
27295
|
}
|
27173
27296
|
$define(STATIC, OBJECT, {
|
27297
|
+
// https://gist.github.com/WebReflection/9353781
|
27298
|
+
getOwnPropertyDescriptors: function(object){
|
27299
|
+
var O = toObject(object)
|
27300
|
+
, result = {};
|
27301
|
+
forEach.call(ownKeys(O), function(key){
|
27302
|
+
defineProperty(result, key, descriptor(0, getOwnDescriptor(O, key)));
|
27303
|
+
});
|
27304
|
+
return result;
|
27305
|
+
},
|
27174
27306
|
// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-9.md#51-objectentries-objectvalues
|
27175
|
-
values:
|
27307
|
+
values: createObjectToArray(false),
|
27176
27308
|
entries: createObjectToArray(true)
|
27177
27309
|
});
|
27178
27310
|
$define(STATIC, REGEXP, {
|
@@ -27220,10 +27352,9 @@ $define(GLOBAL + BIND, {
|
|
27220
27352
|
var dict = create(null);
|
27221
27353
|
if(iterable != undefined){
|
27222
27354
|
if(isIterable(iterable)){
|
27223
|
-
|
27224
|
-
|
27225
|
-
|
27226
|
-
}
|
27355
|
+
forOf(iterable, true, function(key, value){
|
27356
|
+
dict[key] = value;
|
27357
|
+
});
|
27227
27358
|
} else assign(dict, iterable);
|
27228
27359
|
}
|
27229
27360
|
return dict;
|
@@ -27679,8 +27810,12 @@ $define(GLOBAL + FORCED, {global: global});
|
|
27679
27810
|
* Module : core.log *
|
27680
27811
|
******************************************************************************/
|
27681
27812
|
|
27682
|
-
!function(log,
|
27683
|
-
|
27813
|
+
!function(log, enabled){
|
27814
|
+
// Methods from https://github.com/DeveloperToolsWG/console-object/blob/master/api.md
|
27815
|
+
forEach.call(array('assert,clear,count,debug,dir,dirxml,error,exception,' +
|
27816
|
+
'group,groupCollapsed,groupEnd,info,isIndependentlyComposed,log,' +
|
27817
|
+
'markTimeline,profile,profileEnd,table,time,timeEnd,timeline,' +
|
27818
|
+
'timelineEnd,timeStamp,trace,warn'), function(key){
|
27684
27819
|
log[key] = function(){
|
27685
27820
|
if(enabled && key in console)return apply.call(console[key], console, arguments);
|
27686
27821
|
};
|
@@ -27693,7 +27828,7 @@ $define(GLOBAL + FORCED, {global: global});
|
|
27693
27828
|
enabled = false;
|
27694
27829
|
}
|
27695
27830
|
})});
|
27696
|
-
}({},
|
27831
|
+
}({}, true);
|
27697
27832
|
}(typeof self != 'undefined' && self.Math === Math ? self : Function('return this')(), false);
|
27698
27833
|
},{}],171:[function(require,module,exports){
|
27699
27834
|
|
@@ -37639,27 +37774,33 @@ function through (write, end, opts) {
|
|
37639
37774
|
}
|
37640
37775
|
},
|
37641
37776
|
|
37642
|
-
|
37777
|
+
abrupt: function(type, arg) {
|
37643
37778
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
37644
37779
|
var entry = this.tryEntries[i];
|
37645
37780
|
if (entry.tryLoc <= this.prev &&
|
37646
|
-
hasOwn.call(entry, "finallyLoc") &&
|
37647
|
-
|
37648
|
-
|
37649
|
-
|
37781
|
+
hasOwn.call(entry, "finallyLoc") &&
|
37782
|
+
this.prev < entry.finallyLoc) {
|
37783
|
+
var finallyEntry = entry;
|
37784
|
+
break;
|
37650
37785
|
}
|
37651
37786
|
}
|
37652
|
-
},
|
37653
37787
|
|
37654
|
-
|
37655
|
-
|
37656
|
-
|
37788
|
+
if (finallyEntry &&
|
37789
|
+
(type === "break" ||
|
37790
|
+
type === "continue") &&
|
37791
|
+
finallyEntry.tryLoc <= arg &&
|
37792
|
+
arg < finallyEntry.finallyLoc) {
|
37793
|
+
// Ignore the finally entry if control is not jumping to a
|
37794
|
+
// location outside the try/catch block.
|
37795
|
+
finallyEntry = null;
|
37796
|
+
}
|
37657
37797
|
|
37798
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
37658
37799
|
record.type = type;
|
37659
37800
|
record.arg = arg;
|
37660
37801
|
|
37661
|
-
if (
|
37662
|
-
this.next =
|
37802
|
+
if (finallyEntry) {
|
37803
|
+
this.next = finallyEntry.finallyLoc;
|
37663
37804
|
} else {
|
37664
37805
|
this.complete(record);
|
37665
37806
|
}
|
@@ -37686,8 +37827,12 @@ function through (write, end, opts) {
|
|
37686
37827
|
},
|
37687
37828
|
|
37688
37829
|
finish: function(finallyLoc) {
|
37689
|
-
var
|
37690
|
-
|
37830
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
37831
|
+
var entry = this.tryEntries[i];
|
37832
|
+
if (entry.finallyLoc === finallyLoc) {
|
37833
|
+
return this.complete(entry.completion, entry.afterLoc);
|
37834
|
+
}
|
37835
|
+
}
|
37691
37836
|
},
|
37692
37837
|
|
37693
37838
|
"catch": function(tryLoc) {
|
@@ -43271,7 +43416,7 @@ module.exports = function (str) {
|
|
43271
43416
|
module.exports={
|
43272
43417
|
"name": "babel",
|
43273
43418
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
43274
|
-
"version": "4.4.
|
43419
|
+
"version": "4.4.6",
|
43275
43420
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
43276
43421
|
"homepage": "https://babeljs.io/",
|
43277
43422
|
"repository": "babel/babel",
|
@@ -43308,10 +43453,10 @@ module.exports={
|
|
43308
43453
|
"dependencies": {
|
43309
43454
|
"acorn-babel": "0.11.1-34",
|
43310
43455
|
"ast-types": "~0.6.1",
|
43311
|
-
"chalk": "^0.
|
43456
|
+
"chalk": "^1.0.0",
|
43312
43457
|
"chokidar": "^0.12.6",
|
43313
43458
|
"commander": "^2.6.0",
|
43314
|
-
"core-js": "^0.
|
43459
|
+
"core-js": "^0.6.1",
|
43315
43460
|
"debug": "^2.1.1",
|
43316
43461
|
"detect-indent": "^3.0.0",
|
43317
43462
|
"estraverse": "^1.9.1",
|
@@ -43326,7 +43471,7 @@ module.exports={
|
|
43326
43471
|
"output-file-sync": "^1.1.0",
|
43327
43472
|
"path-is-absolute": "^1.0.0",
|
43328
43473
|
"private": "^0.1.6",
|
43329
|
-
"regenerator-babel": "0.8.
|
43474
|
+
"regenerator-babel": "0.8.13-1",
|
43330
43475
|
"regexpu": "^1.1.1",
|
43331
43476
|
"repeating": "^1.1.2",
|
43332
43477
|
"shebang-regex": "^1.0.0",
|