You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned variable a is not defined. The function foo() must always return 0.
Demo: https://babeljs.io/repl/#?babili=true&evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-2&targets=&browsers=&builtIns=false&code=function foo() { let len %3D 0%3B for (let i %3D 0%3B i < 2%3B i%2B%2B) {} return len%3B}
The text was updated successfully, but these errors were encountered:
The function getStringByteSize() refers to an undefined variable in the
minified output. This works around this problem.
See babel/minify#430
Add a verify test for WebSocket.send() to make sure the private
getStringByteSize() can be called without an error being thrown.
Change-Id: I5513e53cc262d13fdc7434601c9557d0814655fc
…) (#713)
* Fix(merge-sibling-var): force recalc ref when concat for-loop var (#485)
Fix#594Fix#430Fix#412
* Add test cases of es2015 scoping issue (#713)
* Use babel path API instead of mutating node
Using
let
in the initialization part of thefor
loop used in the functionfoo()
leads to incorrect output.Input:
Output:
The returned variable
a
is not defined. The functionfoo()
must always return0
.Demo:
https://babeljs.io/repl/#?babili=true&evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-2&targets=&browsers=&builtIns=false&code=function foo() { let len %3D 0%3B for (let i %3D 0%3B i < 2%3B i%2B%2B) {} return len%3B}
The text was updated successfully, but these errors were encountered: