quickjs-done-nextgen/tests/fixture_cyclic_import.js
Ben Noordhuis 36227a5310
Fix cyclic import/export segfault (#568)
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
2024-10-16 10:13:38 +02:00

2 lines
88 B
JavaScript

import * as a from "./test_cyclic_import.js"
export function f(x) { return 2 * a.g(x) }