babel-source 5.6.0 → 5.6.1
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 +10 -4
- data/lib/babel/source.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2ZlMWFmOWFlN2I3ZjM2ODg3ZjNlNzA3ZWZhN2UzNDdmYzVmMjdiOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmIwODI5YzlkYjhiNDFhZWE2MGZmNjU2MDU3ZGQ0MGIxYjg5MDZmNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWU0OWFjNDZhNzQ0YzM4OGFhN2NjZjg2Y2RjODI4YTU2YmQyZTJhYzBkNjQw
|
10
|
+
NmEyMjZiYmNlZWY4MTg5YzM1MjU3ODU2MjYyZmI3NmVjOGRjMjdhMWUyNjIy
|
11
|
+
YzVhOWM5ZjFhOTFmMzBiMDU2ZjBhMTU4MzIzOGFmMjQyMzVjZjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTM0YjdjYTdlM2YxZTAxZjExZGIxMjdlYjYyYWE0NDQxYWY2ZGU3MDgwMWRm
|
14
|
+
NWI1NTRmZjNiNWZkMTA0NzcxOWVkYmY2NGM4Y2RhNGY4ZDQ0MzIwNTA5MzRk
|
15
|
+
ODI5ZGYxZjZiZjhiODYwMzIxY2M5ZTUxNmI5MWU4OTUyMTM1Yzc=
|
data/lib/babel.js
CHANGED
@@ -10669,7 +10669,13 @@ var ReplaceSupers = (function () {
|
|
10669
10669
|
|
10670
10670
|
if (methodName.name === "constructor") {
|
10671
10671
|
// constructor() { super(); }
|
10672
|
-
|
10672
|
+
if (parent.arguments.length === 2 && t.isSpreadElement(parent.arguments[1]) && t.isIdentifier(parent.arguments[1].argument, { name: "arguments" })) {
|
10673
|
+
// special case single arguments spread
|
10674
|
+
parent.arguments[1] = parent.arguments[1].argument;
|
10675
|
+
return t.memberExpression(superRef, t.identifier("apply"));
|
10676
|
+
} else {
|
10677
|
+
return t.memberExpression(superRef, t.identifier("call"));
|
10678
|
+
}
|
10673
10679
|
} else {
|
10674
10680
|
id = superRef;
|
10675
10681
|
|
@@ -15623,7 +15629,7 @@ var _types = require("../../../types");
|
|
15623
15629
|
var t = _interopRequireWildcard(_types);
|
15624
15630
|
|
15625
15631
|
function getSpreadLiteral(spread, scope) {
|
15626
|
-
if (scope.hub.file.isLoose("es6.spread")) {
|
15632
|
+
if (scope.hub.file.isLoose("es6.spread") && !t.isIdentifier(spread.argument, { name: "arguments" })) {
|
15627
15633
|
return spread.argument;
|
15628
15634
|
} else {
|
15629
15635
|
return scope.toArray(spread.argument, true);
|
@@ -62875,7 +62881,7 @@ module.exports = function (str) {
|
|
62875
62881
|
module.exports={
|
62876
62882
|
"name": "babel-core",
|
62877
62883
|
"description": "A compiler for writing next generation JavaScript",
|
62878
|
-
"version": "5.6.
|
62884
|
+
"version": "5.6.1",
|
62879
62885
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
62880
62886
|
"homepage": "https://babeljs.io/",
|
62881
62887
|
"license": "MIT",
|
@@ -62951,7 +62957,7 @@ module.exports={
|
|
62951
62957
|
"trim-right": "^1.0.0"
|
62952
62958
|
},
|
62953
62959
|
"devDependencies": {
|
62954
|
-
"babel": "5.5.
|
62960
|
+
"babel": "5.5.7",
|
62955
62961
|
"browserify": "^9.0.8",
|
62956
62962
|
"chai": "^2.2.0",
|
62957
62963
|
"eslint": "^0.21.2",
|
data/lib/babel/source.rb
CHANGED