mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 36634cbcf3253dfe8d220990a27ad4eeebf8ec2f
This commit is contained in:
parent
0964d055cd
commit
7295abcc2a
245 changed files with 5966 additions and 1901 deletions
|
@ -33,6 +33,20 @@ test(() => {
|
|||
}
|
||||
}, "Branding");
|
||||
|
||||
test(() => {
|
||||
const module = new WebAssembly.Module(emptyModuleBinary);
|
||||
const instance = new WebAssembly.Instance(module);
|
||||
const exports = instance.exports;
|
||||
|
||||
const desc = Object.getOwnPropertyDescriptor(WebAssembly.Instance.prototype, "exports");
|
||||
assert_equals(typeof desc, "object");
|
||||
|
||||
const getter = desc.get;
|
||||
assert_equals(typeof getter, "function");
|
||||
|
||||
assert_equals(getter.call(instance, {}), exports);
|
||||
}, "Stray argument");
|
||||
|
||||
test(() => {
|
||||
const module = new WebAssembly.Module(emptyModuleBinary);
|
||||
const instance = new WebAssembly.Instance(module);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue