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
foo and bar are incorrectly parsed such that occurrences of /DIVISION/g are interpreted as regex literals instead of as sequences of division operators. Handling this correctly depends on special treatment of await within async functions (since it's not a reserved word in other contexts), and special treatment of yield within generator functions (since it's otherwise only a reserved word in "use strict" contexts).
div3 incorrectly fails to parse. The body should similarly contain two division operations.
The text was updated successfully, but these errors were encountered:
The following piece of code is valid but it is parsed incorrectly:
The output of
tree-sitter parse
is the following:foo
andbar
are incorrectly parsed such that occurrences of/DIVISION/g
are interpreted as regex literals instead of as sequences of division operators. Handling this correctly depends on special treatment ofawait
withinasync
functions (since it's not a reserved word in other contexts), and special treatment ofyield
within generator functions (since it's otherwise only a reserved word in"use strict"
contexts).div3
incorrectly fails to parse. The body should similarly contain two division operations.The text was updated successfully, but these errors were encountered: