blob: 52a4dfabd863c4172dbe46400c0bf416a4822ce7 [file] [log] [blame]
import * as constant from "./constant.wasm"
import * as assert from '../assert.js';
assert.isNumber(constant.constant);
assert.eq(constant.constant, 42);
assert.throws(() => {
constant.constant = 200;
}, TypeError, `Attempted to assign to readonly property.`);