Compare commits

...

3 Commits

Author SHA1 Message Date
Sebastian McKenzie
7a3071a094 v3.0.6 2015-01-28 17:51:02 +11:00
Sebastian McKenzie
77361582f4 don't stop block scoped variable traversal on any scope, just skip it and fix block statement for parent delegation - fixes #605 2015-01-28 17:48:37 +11:00
Sebastian McKenzie
f585039430 3.0.5 2015-01-28 15:23:11 +11:00
4 changed files with 10 additions and 4 deletions

View File

@@ -11,6 +11,12 @@
_Note: Gaps between patch versions are faulty/broken releases._
## 3.0.6
* **Bug Fix**
* Fix block scope variable tracking stopping whenever it hits a new scope.
* Fix block scope variable tracking breaking on all block statement scopes that have a for loop parent.
## 3.0.5
* **Internal**

View File

@@ -171,7 +171,7 @@ var blockVariableVisitor = {
if (t.isBlockScoped(node)) {
add(node, false, t.isLet(node));
} else if (t.isScope(node)) {
context.stop();
context.skip();
}
}
};
@@ -196,7 +196,7 @@ Scope.prototype.getInfo = function () {
}
};
if (parent && t.isBlockStatement(block) && t.isFor(parent.block)) {
if (parent && t.isBlockStatement(block) && t.isFor(parent.block, { body: block })) {
return info;
}

View File

@@ -1,7 +1,7 @@
{
"name": "6to5",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "3.0.5",
"version": "3.0.6",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://6to5.org/",
"repository": "6to5/6to5",

View File

@@ -1,6 +1,6 @@
{
"name": "6to5-runtime",
"description": "6to5 selfContained runtime",
"version": "3.0.4",
"version": "3.0.5",
"author": "Sebastian McKenzie <sebmck@gmail.com>"
}