Compare commits

...

3 Commits

Author SHA1 Message Date
Sebastian McKenzie
45553f1fb7 v4.2.1 2015-02-18 11:37:47 +11:00
Sebastian McKenzie
f228edbb84 add auxiliary comment to let scoping closure flow control - fixes #819 2015-02-18 11:35:57 +11:00
Sebastian McKenzie
64e657e53d 4.2.0 2015-02-18 11:33:58 +11:00
4 changed files with 13 additions and 6 deletions

View File

@@ -13,6 +13,11 @@ _Note: Gaps between patch versions are faulty/broken releases._
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
## 4.2.1
* **Polish**
* Add auxiliary comment to let scoping closure flow control.
## 4.2.0
* **Polish**

View File

@@ -546,14 +546,16 @@ BlockScoping.prototype.buildHas = function (ret, call) {
if (cases.length === 1) {
var single = cases[0];
body.push(t.ifStatement(
body.push(this.file.attachAuxiliaryComment(t.ifStatement(
t.binaryExpression("===", ret, single.test),
single.consequent[0]
));
)));
} else {
body.push(t.switchStatement(ret, cases));
body.push(this.file.attachAuxiliaryComment(t.switchStatement(ret, cases)));
}
} else {
if (has.hasReturn) body.push(retCheck);
if (has.hasReturn) {
body.push(this.file.attachAuxiliaryComment(retCheck));
}
}
};

View File

@@ -1,7 +1,7 @@
{
"name": "babel",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "4.2.0",
"version": "4.2.1",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
"repository": "babel/babel",

View File

@@ -1,7 +1,7 @@
{
"name": "babel-runtime",
"description": "babel selfContained runtime",
"version": "4.1.1",
"version": "4.2.0",
"repository": "babel/babel",
"author": "Sebastian McKenzie <sebmck@gmail.com>"
}