Bug 165471

Summary: WebAssembly JS API: `this` value on imports
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: JF Bastien <jfbastien>
Status: RESOLVED FIXED    
Severity: Normal CC: jfbastien, keith_miller, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 165118    
Bug Blocks: 159775    

JF Bastien
Reported 2016-12-06 09:26:23 PST
I'm not sure what the `this` value should be when calling imports. I'm setting it to `undefined` for now, but I could see it being the WebAssembly.Instance as well. Test this as well, e.g. pass Number.isFinite as an import.
Attachments
Saam Barati
Comment 1 2017-01-03 12:13:04 PST
We do the right thing. It should be undefined.
Note You need to log in before you can comment on or make changes to this bug.