Index: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
index 603fd4b8a792578339333b999f941b39c8fd3f49..6fa1d3b62e24e00b8d816a8be7912e741e4164d6 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
@@ -146,8 +146,8 @@ class Emitter implements emitterTask.Emitter { |
switch (builtin) { |
case JsBuiltin.dartObjectConstructor: |
- return js.js.expressionTemplateYielding( |
- typeAccess(_compiler.commonElements.objectClass)); |
+ ClassElement objectClass = _compiler.commonElements.objectClass; |
+ return js.js.expressionTemplateYielding(typeAccess(objectClass)); |
case JsBuiltin.isCheckPropertyToJsConstructorName: |
int isPrefixLength = namer.operatorIsPrefix.length; |