mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
36227a5310
Before this commit it segfaulted, now it throws a SyntaxError. That's still not correct behavior but better than segfaulting. To be continued. Includes a small run-test262 fix to handle Windows line endings. Refs: https://github.com/quickjs-ng/quickjs/issues/567
12 lines
354 B
JavaScript
12 lines
354 B
JavaScript
/*---
|
|
negative:
|
|
phase: resolution
|
|
type: SyntaxError
|
|
---*/
|
|
// FIXME(bnoordhuis) shouldn't throw SyntaxError but that's still better
|
|
// than segfaulting, see https://github.com/quickjs-ng/quickjs/issues/567
|
|
import {assert} from "./assert.js"
|
|
import {f} from "./fixture_cyclic_import.js"
|
|
export {f}
|
|
export function g(x) { return x + 1 }
|
|
assert(f(1), 4)
|