Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Jan 2, 2017
1 parent addb800 commit edf5bdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
@@ -1,3 +1,4 @@
let p
let a = do {
while (p = p.parentPath) {
if (a) {
Expand Down
@@ -1,3 +1,4 @@
let p;
let a = function () {
var _ret;

Expand All @@ -9,4 +10,4 @@ let a = function () {
}
}
return _ret;
}();
}();
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/replacement.js
Expand Up @@ -215,7 +215,7 @@ export function replaceExpressionWithStatements(nodes: Array<Object>) {
let uid = loop.getData("expressionReplacementReturnUid");

if (!uid) {
let callee = this.get("callee");
const callee = this.get("callee");
uid = callee.scope.generateDeclaredUidIdentifier("ret");
callee.get("body").pushContainer("body", t.returnStatement(uid));
loop.setData("expressionReplacementReturnUid", uid);
Expand Down

0 comments on commit edf5bdb

Please sign in to comment.