Sign in
webkit
/
WebKit
/
1f1266f0dcab8540f00eb5bc60026f75b211efa9
/
.
/
JSTests
/
wasm
/
modules
/
js-wasm-global.js
blob: 5ae7929ac7b1212e3f58a8082034cb8c801325e9 [
file
] [
log
] [
blame
]
import
{
constant
}
from
"./constant.wasm"
import
*
as assert from
'../assert.js'
;
assert
.
isNumber
(
constant
);
assert
.
eq
(
constant
,
42
);
assert
.
throws
(()
=>
{
constant
=
200
;
},
TypeError
,
`
Attempted
to assign to readonly property
.`);