summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1462286.js
blob: ffffc5ee6aa048d728e20ad895eaf5f9eacc004f (plain)
1
2
3
4
5
6
7
8
let a = registerModule('a', parseModule(`
  export var { ... get } = { x: "foo" };
`));

let m = parseModule("import { get } from 'a'; export { get };");
moduleLink(m);
moduleEvaluate(m)
assertEq(getModuleEnvironmentValue(m, "get").x, "foo");