mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
9 lines
371 B
JavaScript
9 lines
371 B
JavaScript
// META: global=jsshell
|
|
// META: script=/wasm/jsapi/wasm-module-builder.js
|
|
|
|
test(() => {
|
|
const emptyModuleBinary = new WasmModuleBuilder().toBuffer();
|
|
const module = new WebAssembly.Module(emptyModuleBinary);
|
|
const instance = new WebAssembly.Instance(module);
|
|
assert_class_string(instance, "WebAssembly.Instance");
|
|
}, "Object.prototype.toString on an Instance");
|