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

Unified Diff: tests/compiler/dart2js_native/oddly_named_fields_test.dart

Issue 25675002: Generative constructor factories for native objects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: tests/compiler/dart2js_native/oddly_named_fields_test.dart
diff --git a/tests/compiler/dart2js_native/oddly_named_fields_test.dart b/tests/compiler/dart2js_native/oddly_named_fields_test.dart
index 6ade2086a051f2fb5bbfc1f065663aeba50a6c98..b2dae29638c998b52e21895a289c617757e102bb 100644
--- a/tests/compiler/dart2js_native/oddly_named_fields_test.dart
+++ b/tests/compiler/dart2js_native/oddly_named_fields_test.dart
@@ -1369,7 +1369,7 @@ testObjectWeaklyTyped(object) {
if (object.yieldValue) throw 'incorrect value in "yieldValue"';
}
-makeNativeClassWithOddNames() native;
+NativeClassWithOddNames makeNativeClassWithOddNames() native;
setup() native """
function NativeClassWithOddNames() {}
@@ -1378,7 +1378,7 @@ makeNativeClassWithOddNames = function() { return new NativeClassWithOddNames; }
main() {
setup();
- var object = new NativeClassWithOddNames();
+ var object = makeNativeClassWithOddNames();
object.testMyFields();
testObjectStronglyTyped(object);
testObjectWeaklyTyped([object]);

Powered by Google App Engine
This is Rietveld 408576698