mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
8cd59bf7c4
It's still not infallible (I don't think it can ever be, the whole premise is wrong) but hopefully it's a little less fallible now. Fixes: https://github.com/quickjs-ng/quickjs/issues/606
8 lines
171 B
JavaScript
8 lines
171 B
JavaScript
/*---
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
// the import statement makes it a module but `await = 42` is a SyntaxError
|
|
import * as _ from "dummy"
|
|
await = 42
|