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
To be honest I don't really understand why the Javascript code is invalid, it looks fine to me but it appears to be some edge case around calling functions directly on raw objects as when I manually change the output to:
Description
Fable is generating invalid Javascript for inline function call that immediately calls function on returned object.
Repro code
https://fable.io/repl/#?code=DYUwLgBAlgdssggMwgYwIbGAI3ag1hALwCwAUBJcgK4wQAUAlBALQB85VXEA3gD4RO3YQBUQAZ0hEadJqzYQADgCdYYJHQBEYyZqHCuAEQD2AOWNgAFrADmxGQ2btH+7nwC+rrnwUYsuAnJyUEgAD3t6FEjaCHDnUIA6HTAmRkYgA&html=Q&css=Q
Expected and actual results
To be honest I don't really understand why the Javascript code is invalid, it looks fine to me but it appears to be some edge case around calling functions directly on raw objects as when I manually change the output to:
The interpreter is accepts it.
Related information
The text was updated successfully, but these errors were encountered: