interceptor is treeshaken over-aggressively #11600
Labels
P1
A high priority bug; for example, a single project is unusable or has many test failures
web-dart2js
Milestone
The following program:
void foo() {}
main() {
print(foo is Function);
}
prints "true" on the VM but generates the following error with dart2js:
Uncaught TypeError: Object [object Object] has no method 'getInterceptor'
Adding some explicit dispatch on foo makes the program run correctly. It appears that the is check alone isn't sufficient to keep getInterceptor around but should be.
The text was updated successfully, but these errors were encountered: