| Index: tests/compiler/dart2js_native/subclassing_constructor_1_test.dart
|
| diff --git a/tests/compiler/dart2js_native/subclassing_constructor_1_test.dart b/tests/compiler/dart2js_native/subclassing_constructor_1_test.dart
|
| index 45f8d6be39c2ca0b6173d55c8e6f4f4a5b8920f2..968ddbaa4417eaf703dc52ecccb1d993ebbb1982 100644
|
| --- a/tests/compiler/dart2js_native/subclassing_constructor_1_test.dart
|
| +++ b/tests/compiler/dart2js_native/subclassing_constructor_1_test.dart
|
| @@ -60,13 +60,16 @@ makeB() native;
|
| @Creates('=Object')
|
| getBPrototype() native;
|
|
|
| -void setup() native r"""
|
| -function B() { this.a2 = 102; }
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function B() { this.a2 = 102; }
|
|
|
| -makeB = function(){return new B;};
|
| + makeB = function(){return new B()};
|
|
|
| -getBPrototype = function(){return B.prototype;};
|
| -""";
|
| + getBPrototype = function(){return B.prototype;};
|
| +})()""");
|
| +}
|
|
|
| test_one() {
|
| trace = [];
|
|
|