Bug 173180

Summary: WebAssembly: compile/instantiate/validate don't have the right property descriptors
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: 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    

Description JF Bastien 2017-06-09 13:36:56 PDT
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.
Comment 1 Yusuke Suzuki 2021-01-27 16:03:22 PST
Let me check whether this is still true.
Comment 2 Yusuke Suzuki 2021-01-27 16:04:49 PST
This is fixed in 199783

*** This bug has been marked as a duplicate of bug 199783 ***