Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart |
index f643acfc640bcedbcd3a6633ccd471238cf144a5..e9370c76ffe1851edc62e38a2e69a6014b40b577 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart |
@@ -151,7 +151,8 @@ class InterceptorEmitter extends CodeEmitterHelper { |
} else { |
ClassElement jsUnknown = backend.jsUnknownJavaScriptObjectClass; |
- if (compiler.codegenWorld.instantiatedClasses.contains(jsUnknown)) { |
+ if (compiler.codegenWorld |
+ .directlyInstantiatedClasses.contains(jsUnknown)) { |
statements.add( |
js.statement('if (!(receiver instanceof #)) return #;', |
[namer.elementAccess(compiler.objectClass), |