blob: c592be01dc077c93217bd65a8200ac53a585a964 [file] [log] [blame] [edit]
import * as ns from "./namespace-empty.js"
import {shouldThrow} from "./resources/assert.js"
function access(ns)
{
return ns.test;
}
noInline(access);
for (var i = 0; i < 1e3; ++i) {
shouldThrow(() => {
access(ns);
}, `ReferenceError: Cannot access 'test' before initialization.`);
}
export let test = 42;