Bug 165471 - WebAssembly JS API: `this` value on imports
Summary: WebAssembly JS API: `this` value on imports
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: JF Bastien
Depends on: 165118
Blocks: 159775
  Show dependency treegraph
Reported: 2016-12-06 09:26 PST by JF Bastien
Modified: 2017-01-03 12:13 PST (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description JF Bastien 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.
Comment 1 Saam Barati 2017-01-03 12:13:04 PST
We do the right thing. It should be undefined.