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
. When a function argument is another function's returned tuple, the inner function is broken out into a separate statement that's evaluated too early. To avoid that we can use ES6 spread operator and avoid a separate statement.
The text was updated successfully, but these errors were encountered:
Consider the following snippet:
In it, the
f()(g())
should be equivalent to:However, in GopherJS it is:
https://gopherjs.github.io/playground/#/FMGNfOX9RA
https://go.dev/play/p/DGqo4zOvkUM
The bug is here:
gopherjs/compiler/utils.go
Line 119 in e76f823
The text was updated successfully, but these errors were encountered: