| Index: tests/compiler/dart2js_native/native_checked_fields_frog_test.dart
|
| diff --git a/tests/compiler/dart2js_native/native_checked_fields_frog_test.dart b/tests/compiler/dart2js_native/native_checked_fields_frog_test.dart
|
| index 13a57d803c0de9c448e780978156dde3bb7ca215..ffc9d3870416961cc9999cc06ac9fa5ca9cb1c79 100644
|
| --- a/tests/compiler/dart2js_native/native_checked_fields_frog_test.dart
|
| +++ b/tests/compiler/dart2js_native/native_checked_fields_frog_test.dart
|
| @@ -19,17 +19,20 @@ class B {
|
| A makeA() native;
|
| B makeB() native;
|
|
|
| -void setup() native """
|
| -function A() {}
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {}
|
|
|
| -function B() {}
|
| + function B() {}
|
|
|
| -makeA = function(){return new A;};
|
| -makeB = function(){return new B;};
|
| + makeA = function(){return new A()};
|
| + makeB = function(){return new B()};
|
|
|
| -self.nativeConstructor(A);
|
| -self.nativeConstructor(B);
|
| -""";
|
| + self.nativeConstructor(A);
|
| + self.nativeConstructor(B);
|
| +})()""");
|
| +}
|
|
|
| expectThrows(action()) {
|
| bool threw = false;
|
|
|