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