-
Notifications
You must be signed in to change notification settings - Fork 1.7k
noSuchMethod isn't getting called on web on beta/dev channels (works fine on stable) #50750
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
I believe this is a deliberate change in how implicit implementations of private members from other libraries work. (#49687) When you implement an interface which has an inaccessible member (private member from another library), it used to be implemented by an implicit " This was changed in 2.19, so now the inaccessible member implementation directly throws a |
We've landed a change to the web |
👍🏻️8ad7661 Can the commit be merged into the next version of Dart? |
…ion. Changes `other._value` to `other.millisecondsSinceEpoch`, which prevents crashing if provided with a different implementation of `DateTime`. Exposed by #50750. Bug: https://dartbug.com/50750 Cherry-pick: #50821 Change-Id: I1dfc0bb4e8a44ef0df432c9a916a6620691e0547 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277002 Commit-Queue: Lasse Nielsen <[email protected]> Reviewed-by: Nate Bosch <[email protected]> Auto-Submit: Lasse Nielsen <[email protected]>
In my sample code, on the Web platform,
noSuchMethod(...)
is not getting invoked. It works fine on stable, but is not working on beta/dev/master.I have tested with MacOS (latest, 13.0.1) on Chrome (latest, Version 108.0.5359.124 (Official Build) (x86_64)). Also tested on DartPad.
Problematic versions:
Works fine on the latest stable version (2.18.5)!
Expected behavior:
Actual behavior:
Sample code:
The text was updated successfully, but these errors were encountered: