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
Haxe 4.3.6.
This example is a bit nonsensical, real-world code makes sense, I just pared it down into a small example where the issue can be reproduced.
The $_ refers to a (JS) array, which doesn't have the contains function (JS uses includes for the same thing), therefore $_.contains is null and the generated binding (f) is faulty. The code fails at runtime with this error: TypeError: f is not a function
The text was updated successfully, but these errors were encountered:
Haxe 4.3.6.
This example is a bit nonsensical, real-world code makes sense, I just pared it down into a small example where the issue can be reproduced.
The following code compiles (when using
-D no-inline
), becoming:The
$_
refers to a (JS) array, which doesn't have thecontains
function (JS usesincludes
for the same thing), therefore$_.contains
is null and the generated binding (f
) is faulty. The code fails at runtime with this error:TypeError: f is not a function
The text was updated successfully, but these errors were encountered: