| Index: tests/compiler/dart2js_native/fake_thing_2_test.dart
|
| diff --git a/tests/compiler/dart2js_native/fake_thing_2_test.dart b/tests/compiler/dart2js_native/fake_thing_2_test.dart
|
| index 5e8710f103be3f09a606a529d84296265df1b8ff..f630746274ddc4add964350d17222f7ea4af050c 100644
|
| --- a/tests/compiler/dart2js_native/fake_thing_2_test.dart
|
| +++ b/tests/compiler/dart2js_native/fake_thing_2_test.dart
|
| @@ -18,17 +18,20 @@ make1() native;
|
| make2() native;
|
| make3() native;
|
|
|
| -void setup() native r"""
|
| -function A() {}
|
| -A.prototype.$isThing = true;
|
| -make1 = function(){return new A;};
|
| -make2 = function(){return {$isThing: true}};
|
| -function NT() {}
|
| -NT.prototype.$isThing = true;
|
| -make3 = function(){return new NT;};
|
| -
|
| -self.nativeConstructor(NT);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {}
|
| + A.prototype.$isThing = true;
|
| + make1 = function(){return new A()};
|
| + make2 = function(){return {$isThing: true}};
|
| + function NT() {}
|
| + NT.prototype.$isThing = true;
|
| + make3 = function(){return new NT()};
|
| +
|
| + self.nativeConstructor(NT);
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|