-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
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.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsWhen dev and production compilations have different semanticsweb-dart2jsweb-dev-compilerweb-js-interopIssues that impact all js interopIssues that impact all js interop
Description
Currently there are the following discrepancies between the two compilers for native and interop objects:
- DDC returns a random hash code for interop objects, while dart2js returns 0. Both of these need to be updated to use a ES6 WeakMap to correctly give hashes for these objects.
- dart2js returns
Instance of '<specific type>'fortoStringwhile DDC forwards to the underlyingtoStringof the JS object. dart2js should use the DDC model here. - DDC returns
LegacyJavaScriptObjectforruntimeTypeon interop objects, while dart2js returnsJSObject. It's unclear what value we want here (perhapsJavaScriptObject?), but they should be consistent.
ivk1800
Metadata
Metadata
Assignees
Labels
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.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsWhen dev and production compilations have different semanticsweb-dart2jsweb-dev-compilerweb-js-interopIssues that impact all js interopIssues that impact all js interop