Bug 181439 - WebAssembly exported functions are named incorrectly
Summary: WebAssembly exported functions are named incorrectly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 09:57 PST by Daniel Ehrenberg
Modified: 2018-01-09 13:20 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ehrenberg 2018-01-09 09:57:11 PST
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