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]); |