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
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Describe the bug
If you try and return with anything but a literal, it will fail, with the token seemingly being skipped or just not existing at all.
To Reproduce
functionfoo(){letbar=55;returnbar;// FAIL: "Expected ; after return", as it finds the semicolon instead of the identifier in the parser};
Expected behaviour
Return works with identifiers.
Additional context
The tokenizer works fine. Inspecting the output tokens gives proper identifiers and semicolons. This is something incredibly cursed with the parser.