test_cyclic_import.js (354B)
1 /*--- 2 negative: 3 phase: resolution 4 type: SyntaxError 5 ---*/ 6 // FIXME(bnoordhuis) shouldn't throw SyntaxError but that's still better 7 // than segfaulting, see https://github.com/quickjs-ng/quickjs/issues/567 8 import {assert} from "./assert.js" 9 import {f} from "./fixture_cyclic_import.js" 10 export {f} 11 export function g(x) { return x + 1 } 12 assert(f(1), 4)