Skip to content

Implement JavaScript Foreign Callbacks

Josh Meredith requested to merge wip/js-exports into master

Implements #23126 (closed)

This MR adds an implementation of JavaScript callbacks to be available for use in foreign import javascript types. A Callback a, where a is a function of 0 to 3 JSVal arguments is passed to the imported JavaScript as a "plain" function that uses JavaScript-styled function arguments - rather than using STG-generated register-styled arguments. In this, a JSVal is passed as a plain JavaScript object.

Merge request reports