| Index: tests/compiler/dart2js_native/subclassing_1_test.dart
|
| diff --git a/tests/compiler/dart2js_native/subclassing_1_test.dart b/tests/compiler/dart2js_native/subclassing_1_test.dart
|
| index 93b394cd057902c4d025697dfd0eeab7db94abed..77a636f8dfebf609da7c2f59f4563ebab7b665f2 100644
|
| --- a/tests/compiler/dart2js_native/subclassing_1_test.dart
|
| +++ b/tests/compiler/dart2js_native/subclassing_1_test.dart
|
| @@ -29,18 +29,21 @@ getBPrototype() native;
|
| @Creates('=Object')
|
| getCPrototype() native;
|
|
|
| -void setup() native r"""
|
| -function A() {}
|
| -function B() {}
|
| -function C() {}
|
| -makeA = function(){return new A;};
|
| -makeB1 = function(){return new B;};
|
| -makeB2 = function(){return new B;};
|
| -makeC = function(){return new C;};
|
| -
|
| -getBPrototype = function(){return B.prototype;};
|
| -getCPrototype = function(){return C.prototype;};
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function A() {}
|
| + function B() {}
|
| + function C() {}
|
| + makeA = function(){return new A()};
|
| + makeB1 = function(){return new B()};
|
| + makeB2 = function(){return new B()};
|
| + makeC = function(){return new C()};
|
| +
|
| + getBPrototype = function(){return B.prototype;};
|
| + getCPrototype = function(){return C.prototype;};
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|