-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresweb-dart2js
Milestone
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.
Metadata
Metadata
Assignees
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresweb-dart2js