mirror of
https://github.com/RGBCube/serenity
synced 2025-10-25 02:02:34 +00:00
Previously we were unable to parse code like `yield/2` because `/2` was parsed as a regex. At the same time `for (a in / b/)` was parsed as a division. This is solved by defaulting to division in the lexer, but calling `force_slash_as_regex()` from the parser whenever an IdentifierName is parsed as a ReservedWord. |
||
|---|---|---|
| .. | ||
| submodule | ||
| accessing-lex-import-before-decl.mjs | ||
| accessing-var-import-before-decl.mjs | ||
| anon-func-decl-default-export.mjs | ||
| basic-export-types.mjs | ||
| basic-modules.js | ||
| declarations-tests.mjs | ||
| default-and-star-export-indirect-string.mjs | ||
| default-and-star-export-indirect.mjs | ||
| default-and-star-export.mjs | ||
| default-regexp-export.mjs | ||
| empty.mjs | ||
| exporting-from-failing.mjs | ||
| exporting-nothing-from-failing.mjs | ||
| failing.mjs | ||
| function-in-function.mjs | ||
| import-with-assertions.mjs | ||
| importing-failing-module.mjs | ||
| indirect-export-without-default.mjs | ||
| json-module.json | ||
| json-modules.js | ||
| loop-a.mjs | ||
| loop-b.mjs | ||
| loop-entry.mjs | ||
| loop-self.mjs | ||
| module-with-default.mjs | ||
| multiple-star-imports.mjs | ||
| namespace-order.mjs | ||
| path-resolution.mjs | ||
| re-export-namespace-via-binding.mjs | ||
| single-const-export.mjs | ||
| string-import-names.mjs | ||
| string-import-namespace-indirect.mjs | ||
| string-import-namespace.mjs | ||
| top-level-dispose.mjs | ||