babel-source 4.6.2 → 4.6.3
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 -4
- 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
|
+
YzM1NWRmOWU2M2Q1YmIzYjc2MTk2ZjlmNzIxZTAwZDE3ZWMzYmUwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODBiMTM3Y2E1OWM3ODdhMzg2MWQ2NTIyZThjYzExZGVlZjE1NmIyNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWNhZjY0Y2M0YTRlNTJjZWE3M2YxYmJiNjYyMGQ1YzgxOWU5ZTE1YTY1NGVl
|
10
|
+
NzkxNDYyODM5ZjBmNDVhNGEzZDQ0MzMzYzQxNzg4OGRkZWYxNzg3YmRlNzMz
|
11
|
+
YWY3Mzg5MGRiZjY2OWI4YmFjNmMyY2VhMmFjYTU1MWNlMTM0ZDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2EwNmUzMWIwMGRlNTQ5NWZkM2VkMGU5MGI0YmM0OTAwNzcyMWM2ZmM0N2U0
|
14
|
+
NzY5MzU1ZmM1NTRlN2M5NDljMWQ4NDJkNzQ3MDQ2YmUwNDYyMjJkM2Q3ODZh
|
15
|
+
ZjNiZjliYjZkZmFmOGY3OWQ0NDgwNjA3NTI2NjBiOWVhMDk1Y2Y=
|
data/lib/babel.js
CHANGED
@@ -7778,7 +7778,6 @@ var memberExpressionOptimisationVisitor = {
|
|
7778
7778
|
var prop = parent.property;
|
7779
7779
|
if (isNumber(prop.value) || t.isUnaryExpression(prop) || t.isBinaryExpression(prop)) {
|
7780
7780
|
state.candidates.push(this);
|
7781
|
-
state.canOptimise = true;
|
7782
7781
|
return;
|
7783
7782
|
}
|
7784
7783
|
}
|
@@ -7831,7 +7830,7 @@ exports.Function = function (node, parent, scope) {
|
|
7831
7830
|
|
7832
7831
|
var state = {
|
7833
7832
|
outerBinding: scope.getBindingIdentifier(rest.name),
|
7834
|
-
canOptimise:
|
7833
|
+
canOptimise: true,
|
7835
7834
|
candidates: [],
|
7836
7835
|
method: node,
|
7837
7836
|
name: rest.name
|
@@ -7840,7 +7839,7 @@ exports.Function = function (node, parent, scope) {
|
|
7840
7839
|
scope.traverse(node, memberExpressionOptimisationVisitor, state);
|
7841
7840
|
|
7842
7841
|
// we only have shorthands and there's no other references
|
7843
|
-
if (state.canOptimise) {
|
7842
|
+
if (state.canOptimise && state.candidates.length) {
|
7844
7843
|
for (var i = 0; i < state.candidates.length; i++) {
|
7845
7844
|
var candidate = state.candidates[i];
|
7846
7845
|
candidate.node = argsId;
|
@@ -45126,7 +45125,7 @@ module.exports = function (str) {
|
|
45126
45125
|
module.exports={
|
45127
45126
|
"name": "babel",
|
45128
45127
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
45129
|
-
"version": "4.6.
|
45128
|
+
"version": "4.6.3",
|
45130
45129
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
45131
45130
|
"homepage": "https://babeljs.io/",
|
45132
45131
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babel-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian McKenzie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|