Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart

Issue 170103003: Avoid use of empty string as a property name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
index b178723b4e31c27dd9568cd9c7dfaa71e05e9ac9..d6a222954e8080fd48748af01f3d4812486e9aed 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
@@ -342,7 +342,7 @@ class NativeEmitter {
String superName = backend.namer.getNameOfClass(superclass);
- ClassBuilder builder = new ClassBuilder();
+ ClassBuilder builder = new ClassBuilder(backend.namer);
emitter.classEmitter.emitClassConstructor(classElement, builder, null);
bool hasFields = emitter.classEmitter.emitFields(
classElement, builder, superName, classIsNative: true);

Powered by Google App Engine
This is Rietveld 408576698