Closed
Description
Previous iterations of JS interop allowed wrapping callbacks that allowed you to capture the calling this
object.
sdk/sdk/lib/js_util/js_util.dart
Line 281 in b7aa910
While we do have support for allowInterop
through Function.toJS
, we don't support capturing this
. Currently, that js_util method is unsupported in dart2wasm and the usage is low, but it would be nice to support the capture through something like .toJSWithThis
so users can migrate off of dart:js_util
easier.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done