-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-dart2wasmIssues for the dart2wasm compiler.Issues for the dart2wasm compiler.area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interopIssues that impact all js interop
Description
Currently, divergent behavior is written in a note e.g. https://api.flutter.dev/flutter/dart-js_interop/ListToJSArray/toJS.html. We've historically treated this as unspecified behavior to signal to users that they shouldn't rely on one set of behavior and have it break when switching to a different compiler.
Instead, we should be explicit about said divergent behavior and make that part of the documentation itself. If users do want to rely on one set of behavior with the caveat that they are not targeting other platforms (e.g. only JS and not Wasm), that should be okay.
This came from the discussion around List.toJS in dart-lang/co19#3307.
Metadata
Metadata
Assignees
Labels
area-dart2wasmIssues for the dart2wasm compiler.Issues for the dart2wasm compiler.area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interopIssues that impact all js interop
Type
Projects
Status
Done