Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
openorclose committed Feb 28, 2020
1 parent c6c0e33 commit 26adb87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion packages/babel-helper-call-delegate/src/index.js
Expand Up @@ -35,7 +35,6 @@ export default function(
let callee = container;
let args = [];

// todo: only hoist if necessary
if (shouldHoistVariables) {
hoistVariables(path, id => scope.push({ id }));
}
Expand Down
Expand Up @@ -2,7 +2,7 @@ var x = 1
function foo(x, y = function () { x = 2 }) {
var x = 3
y()
console.log(x);
expect(x).toBe(3);
}
foo()
console.log(x);
expect(x).toBe(1);

This file was deleted.

0 comments on commit 26adb87

Please sign in to comment.