Bug 181439
Summary: | WebAssembly exported functions are named incorrectly | ||
---|---|---|---|
Product: | WebKit | Reporter: | Daniel Ehrenberg <littledan> |
Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | jfbastien |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Daniel Ehrenberg
The WebAssembly JS API specifies that the `name` property of exported function objects is the index where they are initially defined. For host functions, this is the index where they were imported. In running a test [1] in JSC, it seems that ordinary WebAssembly functions are given the name "" and functions which are based on a host function are given the name of that host function. On the other hand, V8 and SpiderMonkey both use index-based names.
[1] https://github.com/WebAssembly/spec/pull/644
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |