tenko
tenko copied to clipboard
An 100% spec compliant ES2021 JavaScript parser written in JS
The file t.sh is using ";&" for cases and that seems to be compatible with bash but not with zsh. As Apple has replaced bash by zsh back in 2019...
This case '"use strict"; (async yield => {})' in the REPL doesn't mark 'web compat' an 'sloppy' as green. Instead they are red and indicate that this case also should...
'new.target' must not contain escaped characters This case 'new.t\u0061rget'. Tenko output: Error: Parser error! Must be inside/nested a regular function to use `new.target`
in string literals - "\9" - is valid. Tenko throws
"Ergonomic brand checks for Private Fields" is now stage 4. https://github.com/tc39/proposal-private-fields-in-in
Kinda makes more sense although it probably doesn't matter much for performance. ```js const x = 33; log(33 | 32 ^ 32); log(33 & ~32); ```
TopLevelAwait reached stage 4
Tenko doesn't parse 'async function f() { for await (async of []); }' and similar cases
The `copyPiggies` calls should not pass an assignable/destructible value. Should create a getpiggies call instead. The call sites may be simplified by doing so since they're implying that the returned...
Silly oversight. Also need to write a test for it. ``` if ($tp_next_type === $ID_in || $tp_next_type === $ID_in) { return THROW_RANGE('Cannot use `let` as a regular var name as...