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

Unified Diff: frog/tests/leg/class_codegen_test.dart

Issue 10344021: Create the JavaScript constructor dynamically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test. Created 8 years, 7 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
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | lib/compiler/implementation/emitter.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/class_codegen_test.dart
diff --git a/frog/tests/leg/class_codegen_test.dart b/frog/tests/leg/class_codegen_test.dart
index ce47c73afd9d59870d84caae5bf202ddbac055f5..7bfb9f9afb9e52abd014aa9168114f7801294ce5 100644
--- a/frog/tests/leg/class_codegen_test.dart
+++ b/frog/tests/leg/class_codegen_test.dart
@@ -81,11 +81,7 @@ subClass() {
fieldTest() {
String generated = compileAll(TEST_FOUR);
Expect.isTrue(generated.contains(@"""
-Isolate.$defineClass("B", "A", function B(z, y, A_x) {
- this.z = z;
- this.y = y;
- this.x = A_x;
- },"""));
+Isolate.$defineClass("B", "A", ["z", "y", "x"],"""));
}
constructor1() {
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | lib/compiler/implementation/emitter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698