-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart2js: toString() breaks for the JS Symbol type #53106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is likely a similar issue with the other primitive JavaScript type introduced since ES5: |
I can confirm that this happens for BigInt as well. |
I want to keep open the option of using JavaScript's BigInt for Dart's BigInt. @srujzs - One thing I am not clear on is how |
Currently this crashes in DDC as well when it tries to call the Dart |
We really haven't specified a behavior here beyond what occurs at runtime (we should). In the case of We do want to expose |
The interceptors provide a Dart `toString` method that uses the JavaScript `toString` method. Issue: #53106 Change-Id: I1cf1df9e24fb4fd2d79679f1f014f39f083be7e9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319563 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Stephen Adams <sra@google.com>
@nex3 Both DDC and dart2js now intercept
|
Reproduction:
Compiling to JS with dart2js (Dart 3.0.7) and running in the browser throws
method not found: 'toString$0' (J.getInterceptor$(...).toString$0 is not a function)
.The text was updated successfully, but these errors were encountered: