babel-source 5.1.7 → 5.1.8
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 +3 -7
- 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
|
+
MGY5NWRkMDY2MjI3OTkxNTg2MTA1ZTVlNjIyODU2MGQ4ZWI4NDNmZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGJjMDI4Y2EzMmMxODkxZGNjNjEzMzA0NzQyMTYyNzM0MjA2ZGZjOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmQ1MzcxNjE3NDAxMGMwMDY1YjcwNTkwNmQ3N2ZmMTc4ODNkNzc5M2I1ZDJi
|
10
|
+
MDRkNWIwYzkzMDRkYTIxZWYwY2Y0ZTdmMWJmOGUyY2YyYjM4MmVkZTQ2YmE3
|
11
|
+
NjdjMDg1MjBmYzRkZTA3ODEwY2E5NjdmNzU0YjU0NzdkODZiOTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTI0NzIwMGI1Y2ZmMjI3NmZjMTY3ZTVkZTE3OTFkYTdlMWVkMGI2ZGMwNTZk
|
14
|
+
YTJhNmVlNzEwMmIxNGU2MDdkYzI4N2Q0OGMzOTc0ODRiOTFkNzJjNTUyZjM5
|
15
|
+
NWU5NzM4Y2QzZTVhMTNjYjgxN2NkMWIzYzU0ZDc2ZTAwODcyZjg=
|
data/lib/babel.js
CHANGED
@@ -1577,12 +1577,8 @@ pp.parseMaybeAssign = function (noIn, refShorthandDefaultPos, afterLeftParse) {
|
|
1577
1577
|
node.left = this.type === tt.eq ? this.toAssignable(left) : left;
|
1578
1578
|
refShorthandDefaultPos.start = 0; // reset because shorthand default was used correctly
|
1579
1579
|
this.checkLVal(left);
|
1580
|
-
if (left.parenthesizedExpression) {
|
1581
|
-
|
1582
|
-
this.raise(left.start, "You're trying to assign to a parenthesized expression, instead of `({ foo }) = {}` use `({ foo } = {})`");
|
1583
|
-
} else {
|
1584
|
-
this.raise(left.start, "Parenthesized left hand expressions are illegal");
|
1585
|
-
}
|
1580
|
+
if (left.parenthesizedExpression && left.type === "ObjectPattern") {
|
1581
|
+
this.raise(left.start, "You're trying to assign to a parenthesized expression, instead of `({ foo }) = {}` use `({ foo } = {})`");
|
1586
1582
|
}
|
1587
1583
|
this.next();
|
1588
1584
|
node.right = this.parseMaybeAssign(noIn);
|
@@ -77387,7 +77383,7 @@ module.exports = function (str) {
|
|
77387
77383
|
module.exports={
|
77388
77384
|
"name": "babel-core",
|
77389
77385
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
77390
|
-
"version": "5.1.
|
77386
|
+
"version": "5.1.8",
|
77391
77387
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
77392
77388
|
"homepage": "https://babeljs.io/",
|
77393
77389
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED