We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My builds are failing. It turns out to be from 6to5.
This is kind of an edge case:
function test(arrays) { let math = Math for (let array of arrays) { math.max(...array) } }
Generated JS:
"use strict"; var _toArray = function (arr) { return Array.isArray(arr) ? arr : Array.from(arr); }; function test(arrays) { var math = Math; for (var _iterator = arrays[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { var array = _step.value; (_math = math).max.apply(_math, _toArray(array)); } }
You can see that the math object is assigned into _math without a var declaration.
math
_math
var
Test:
test([[1, 2, 3], [5, 4]])
Error:
assignment to undeclared variable _math
The text was updated successfully, but these errors were encountered:
Same issue as #710 which has now been fixed. Thanks!
Sorry, something went wrong.
chore(package): update 6to5 and 6to5-core to 3.5.3
9b4d965
This commit takes a while because of: - babel/babel#712 - babel/babel#718
No branches or pull requests
My builds are failing. It turns out to be from 6to5.
This is kind of an edge case:
Generated JS:
You can see that the
math
object is assigned into_math
without avar
declaration.Test:
Error:
The text was updated successfully, but these errors were encountered: