haikuwebkit/JSTests/modules/module-eval/A.js

9 lines
198 B
JavaScript

import { B } from "./B.js"
import { shouldThrow } from "../resources/assert.js"
export let A = "A";
shouldThrow(() => {
eval("B");
}, `ReferenceError: Cannot access uninitialized variable.`);