Closed
Description
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.