summaryrefslogtreecommitdiff
path: root/tests/test_cyclic_import.js
blob: bf51d9b1dd5a72d04b82c29dcc14d2ae818333cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*---
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)