| Index: tests/compiler/dart2js_native/subclassing_type_test.dart
|
| diff --git a/tests/compiler/dart2js_native/subclassing_type_test.dart b/tests/compiler/dart2js_native/subclassing_type_test.dart
|
| index e27dc6339c55ed0558e94cd315e1427925c0c0ac..b99872e44606e226685aaff904ac8d4d7e7af549 100644
|
| --- a/tests/compiler/dart2js_native/subclassing_type_test.dart
|
| +++ b/tests/compiler/dart2js_native/subclassing_type_test.dart
|
| @@ -29,12 +29,15 @@ B makeB() native;
|
| @Creates('=Object')
|
| getBPrototype() native;
|
|
|
| -void setup() native r"""
|
| -function B() {}
|
| -makeB = function(){return new B;};
|
| -
|
| -getBPrototype = function(){return B.prototype;};
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function B() {}
|
| + makeB = function(){return new B()};
|
| +
|
| + getBPrototype = function(){return B.prototype;};
|
| +})()""");
|
| +}
|
|
|
| A gA;
|
| B gB;
|
|
|