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
... or any other variation of function body (like a nested g.Emit());
You might wonder what I'm trying to do... it's format an entire tree. g.Emit() seems to be the only way to do optional fields in an object, so I was trying to figure out how to nest that.
The text was updated successfully, but these errors were encountered:
This is a bug in the Emit function I think, combined with not accumulating the return values on ForEach (where not undefined), which is straightforward enough.
Other finals seem to work fine. For example this works:
But this gets:
{"error" : "(anonymous): Line 6:1 Unexpected token } (and 3 more errors)"}
... or any other variation of function body (like a nested g.Emit());
You might wonder what I'm trying to do... it's format an entire tree. g.Emit() seems to be the only way to do optional fields in an object, so I was trying to figure out how to nest that.
The text was updated successfully, but these errors were encountered: