Index: pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart |
index 58ad5bd8f634c6c66846aec8214d90cb4ade494b..115ec4fef9eeb1c0b53c6eb916aa9a59f471ea3e 100644 |
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart |
@@ -133,7 +133,8 @@ jsAst.Statement buildSetupProgram(Program program, Compiler compiler, |
'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(), |
'hasRetainedMetadata': backend.hasRetainedMetadata, |
'types': typesAccess, |
- 'objectClassName': js.string(namer.runtimeTypeName(compiler.objectClass)), |
+ 'objectClassName': js.quoteName( |
+ namer.runtimeTypeName(compiler.objectClass)), |
'needsStructuredMemberInfo': emitter.needsStructuredMemberInfo, |
'usesMangledNames': |
compiler.mirrorsLibrary != null || compiler.enabledFunctionApply, |
@@ -577,7 +578,7 @@ function $setupProgramName(programData, typesOffset) { |
} |
// ${ClassBuilder.fieldEncodingDescription}. |
var s = fields.split(";"); |
- fields = s[1] == "" ? [] : s[1].split(","); |
+ fields = s[1] ? s[1].split(",") : []; |
supr = s[0]; |
// ${ClassBuilder.functionTypeEncodingDescription}. |
split = supr.split(":"); |