blob: e884f47cd3471d48c902b69cc37a640b56a18e74 [file] [log] [blame]
import { constant } from "./constant.wasm"
import * as assert from '../assert.js';
assert.isNumber(constant.value);
assert.eq(constant.value, 42);
assert.throws(() => {
constant.value = 200;
}, TypeError, `WebAssembly.Global.prototype.value attempts to modify immutable global value`);