| Index: tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart b/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
|
| index 5a02a3b116c396e0d7391da3d20c32f2ab912729..b200628c741fe4f30d4ece2f7c98f33c2553c6ce 100644
|
| --- a/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_named_constructors2_frog_test.dart
|
| @@ -12,8 +12,9 @@ class A {
|
|
|
| factory A.fromString(String s) => _construct(s.length);
|
|
|
| - // Only functions with zero parameters are allowed with "native r'...'".
|
| - factory A.nativeConstructor() native r'return makeA(102);';
|
| + factory A.nativeConstructor() {
|
| + return JS('A|Null', 'makeA(102)');
|
| + }
|
|
|
| static A _construct(v) {
|
| return makeA(v);
|
|
|