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

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

Issue 11491005: Fix for Issue 7224 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/emitter_no_eval.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
index 0b6c0f542924bf24f6acfabe93ff5c05d366f62c..9655b9a630e73b054bbdf29446d991a2ca47192a 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
@@ -123,7 +123,7 @@ $classesCollector.$mangledName = {'': function $mangledName(self, target) {
}
String constructorName = namer.safeName(classElement.name.slowToString());
// Generate the constructor.
- buffer.add("'': function $constructorName(");
+ buffer.add('"": function $constructorName(');
buffer.add(Strings.join(argumentNames, ", "));
buffer.add(") {\n");
for (int i = 0; i < fields.length; i++) {
@@ -132,6 +132,12 @@ $classesCollector.$mangledName = {'': function $mangledName(self, target) {
buffer.add(' }');
}
+ void emitSuper(String superName, CodeBuffer buffer) {
+ if (superName != '') {
+ buffer.add(",\n 'super': '$superName'");
+ }
+ }
+
void emitClassFields(ClassElement classElement,
CodeBuffer buffer,
bool emitEndingComma,

Powered by Google App Engine
This is Rietveld 408576698