test262/implementation-contributed/javascriptcore/modules/module-namespace-is-frozen.js

10 lines
251 B
JavaScript

import * as ns from "./module-namespace-is-frozen.js"
import {shouldThrow} from "./resources/assert.js"
shouldThrow(() => {
Object.isFrozen(ns);
}, `ReferenceError: Cannot access uninitialized variable.`);
export let a;
export function b () { }