babel-source 5.6.2 → 5.6.3
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 +9 -7
- 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
|
+
OTYzNWM4MDE1YzQ4ZjE3NDZmNTZlOWJiNTExYjIzZTc5Nzg1NTc5Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDVmYWY5MDBlZWQyMzJiZmU2Y2QzYTAxZTkwMTFkZTdlODk1MWRhOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzFiOGY2ZTk5MGFmMzJjZTk3Zjk2MzRhMmQ2OTA2YzBjYWNkYjZlOWYxYjhm
|
10
|
+
NzFhNzBmOTg3Yzg5MGYzYzY0ZTM4YTc3ODc5YzBhNWYwYmIyZGRlNzczM2Y1
|
11
|
+
YzMxZmVjMzQ4ODNkMDI4MmFiNmJhMDZmZWQ3Y2ZiYWM4NWNjZTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODZlMzM5NWRiMGZkZTQ2NGM2OTc4ZTc4NmU2NzRkN2UzMGQwZWQ5M2UxNjAx
|
14
|
+
ZjkwZjE3YTFmMTA4OThkNDdkNjgzZWU4MDY2YTUzYTEwZGMzNmE4NTM4Yzhk
|
15
|
+
Yzk4NzdhMjI1MDZkMGEyOTA1YTllZWNmN2Y3N2FjMzc0Mzk5ZjU=
|
data/lib/babel.js
CHANGED
@@ -15202,7 +15202,6 @@ var visitor = {
|
|
15202
15202
|
}
|
15203
15203
|
|
15204
15204
|
// check and optimise for extremely common cases
|
15205
|
-
|
15206
15205
|
var state = {
|
15207
15206
|
references: [],
|
15208
15207
|
offset: node.params.length,
|
@@ -15240,6 +15239,9 @@ var visitor = {
|
|
15240
15239
|
state.references = state.references.concat(state.candidates);
|
15241
15240
|
}
|
15242
15241
|
|
15242
|
+
// deopt shadowed functions as transforms like regenerator may try touch the allocation loop
|
15243
|
+
state.deopted = state.deopted || !!node.shadow;
|
15244
|
+
|
15243
15245
|
//
|
15244
15246
|
|
15245
15247
|
var start = t.literal(node.params.length);
|
@@ -15274,14 +15276,14 @@ var visitor = {
|
|
15274
15276
|
LEN: len
|
15275
15277
|
});
|
15276
15278
|
|
15277
|
-
if (
|
15279
|
+
if (state.deopted) {
|
15280
|
+
loop._blockHoist = node.params.length + 1;
|
15281
|
+
node.body.body.unshift(loop);
|
15282
|
+
} else {
|
15278
15283
|
// perform allocation at the lowest common denominator of all references
|
15284
|
+
loop._blockHoist = 1;
|
15279
15285
|
this.getEarliestCommonAncestorFrom(state.references).getStatementParent().insertBefore(loop);
|
15280
|
-
return;
|
15281
15286
|
}
|
15282
|
-
|
15283
|
-
loop._blockHoist = node.params.length + 1;
|
15284
|
-
node.body.body.unshift(loop);
|
15285
15287
|
}
|
15286
15288
|
};
|
15287
15289
|
exports.visitor = visitor;
|
@@ -62885,7 +62887,7 @@ module.exports = function (str) {
|
|
62885
62887
|
module.exports={
|
62886
62888
|
"name": "babel-core",
|
62887
62889
|
"description": "A compiler for writing next generation JavaScript",
|
62888
|
-
"version": "5.6.
|
62890
|
+
"version": "5.6.3",
|
62889
62891
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
62890
62892
|
"homepage": "https://babeljs.io/",
|
62891
62893
|
"license": "MIT",
|
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: 5.6.
|
4
|
+
version: 5.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-06-
|
11
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|