Bug 173180
Summary: | WebAssembly: compile/instantiate/validate don't have the right property descriptors | ||
---|---|---|---|
Product: | WebKit | Reporter: | JF Bastien <jfbastien> |
Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | fpizlo, jfbastien, keith_miller, mark.lam, msaboff, saam, ysuzuki |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 173287 | ||
Bug Blocks: | 161709 |
JF Bastien
The following spec tests jsapi.js fail:
test(() => {
const compileDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'compile');
assert_equals(typeof compileDesc.value, "function");
assert_equals(compileDesc.writable, true);
assert_equals(compileDesc.enumerable, false);
assert_equals(compileDesc.configurable, true);
}, "'WebAssembly.compile' data property");
test(() => {
const compile = WebAssembly.compile;
const compileDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'compile');
assert_equals(compile, compileDesc.value);
assert_equals(compile.length, 1);
assert_equals(compile.name, "compile");
}, "'WebAssembly.compile' function");
I'll leave a FIXME for now.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
Let me check whether this is still true.
Yusuke Suzuki
This is fixed in 199783
*** This bug has been marked as a duplicate of bug 199783 ***