babel-source 5.1.7 → 5.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/babel.js +3 -7
  3. data/lib/babel/source.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTY3ZWEzMWRlOTExNTYyMDE2MmU4YjEzYmJlNjcwNzFlYzhhODFlNg==
4
+ MGY5NWRkMDY2MjI3OTkxNTg2MTA1ZTVlNjIyODU2MGQ4ZWI4NDNmZA==
5
5
  data.tar.gz: !binary |-
6
- ZTNhMzFmZjdhYTg1YWExZmE4MDVjZDhiY2MzYWQzYjM0ZjgwZjZhZQ==
6
+ NGJjMDI4Y2EzMmMxODkxZGNjNjEzMzA0NzQyMTYyNzM0MjA2ZGZjOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDM0YWQzNTA5YzY1NTBjYzNmNjVlMTJjMzJlNjdmMDMxMDQ5MzcxNmJlZDAw
10
- NDQ3NWFlNDI2NTZlODk3MzNkOTEwMDVkZGVmY2NkYWQ1NWUwMzBlNDVkMzFi
11
- ZTE4MWMyNTkwODhhNWFmYjc3YjBiODYxMWMzZGEwNGZiNmExYzc=
9
+ ZmQ1MzcxNjE3NDAxMGMwMDY1YjcwNTkwNmQ3N2ZmMTc4ODNkNzc5M2I1ZDJi
10
+ MDRkNWIwYzkzMDRkYTIxZWYwY2Y0ZTdmMWJmOGUyY2YyYjM4MmVkZTQ2YmE3
11
+ NjdjMDg1MjBmYzRkZTA3ODEwY2E5NjdmNzU0YjU0NzdkODZiOTM=
12
12
  data.tar.gz: !binary |-
13
- NmYxNGM1ZmIzMTllMjhhMTdkZmRmNDYzZmY5MmZkNTRlYjkyYWZmNDAyMjk3
14
- MjY1NDcwZTIyNDlhYzZiOGQ5MjhiOWVmMjdkNDEwYTJhOTgyNTYyYjYyMDYz
15
- MDkxOTkwYmM2OGY5ZDI2MzZlNTczN2QyNmRiOGRmMjE4YWJiOTI=
13
+ MTI0NzIwMGI1Y2ZmMjI3NmZjMTY3ZTVkZTE3OTFkYTdlMWVkMGI2ZGMwNTZk
14
+ YTJhNmVlNzEwMmIxNGU2MDdkYzI4N2Q0OGMzOTc0ODRiOTFkNzJjNTUyZjM5
15
+ NWU5NzM4Y2QzZTVhMTNjYjgxN2NkMWIzYzU0ZDc2ZTAwODcyZjg=
@@ -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
- if (left.type === "ObjectPattern") {
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.7",
77386
+ "version": "5.1.8",
77391
77387
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
77392
77388
  "homepage": "https://babeljs.io/",
77393
77389
  "repository": "babel/babel",
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.1.7"
4
- DATE = Time.at(1428962396)
3
+ VERSION = "5.1.8"
4
+ DATE = Time.at(1428965146)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babel-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.7
4
+ version: 5.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie