Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 681a6e06095ad23bb344eaa9df2dee08529e841b..f5a24534edf8fa486a2d61524434bfd1ce4b0dd8 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -981,7 +981,8 @@ class JavaScriptBackend extends Backend { |
ClassElement interceptorClass) { |
if (interceptorClass == null) return; |
interceptorClass.ensureResolved(resolution); |
- commonElements.objectClass.forEachMember((_, Element member) { |
+ ClassElement objectClass = commonElements.objectClass; |
+ objectClass.forEachMember((_, Element member) { |
if (member.isGenerativeConstructor) return; |
Element interceptorMember = interceptorClass.lookupMember(member.name); |
// Interceptors must override all Object methods due to calling convention |