| Index: tests/compiler/dart2js_native/subclassing_3_test.dart
|
| diff --git a/tests/compiler/dart2js_native/subclassing_3_test.dart b/tests/compiler/dart2js_native/subclassing_3_test.dart
|
| index ec2e437a9d4bdf37739edd65baf01616c0732b09..5a2c3d9b1f2588599215aa50103a9f0a77799b0e 100644
|
| --- a/tests/compiler/dart2js_native/subclassing_3_test.dart
|
| +++ b/tests/compiler/dart2js_native/subclassing_3_test.dart
|
| @@ -34,12 +34,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;};
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|