dart2js: type tests should not rely in undefined properties #9731
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
A dart2js program will be more robust if it does not rely on undefined properties.
A type test like !!x.$isT is relying on $isT not being defined on Object.prototype. This might not be the case with other components loaded into the page.
Once everything is a Dart object or an interceptor, default values for these flags can live on $.Object.prototype (the Dart Object).
The text was updated successfully, but these errors were encountered: