| Index: tests/compiler/dart2js_native/super_property_test.dart
|
| diff --git a/tests/compiler/dart2js_native/super_property_test.dart b/tests/compiler/dart2js_native/super_property_test.dart
|
| index fe618c9da450b81f071d07fc5307a9265774fb61..68e815a0d7dac1fb12d4e9294686f82060100c37 100644
|
| --- a/tests/compiler/dart2js_native/super_property_test.dart
|
| +++ b/tests/compiler/dart2js_native/super_property_test.dart
|
| @@ -40,15 +40,18 @@ class D extends C {
|
| makeA() native;
|
| makeB() native;
|
|
|
| -void setup() native """
|
| -// This code is all inside 'setup' and so not accessible from the global scope.
|
| -function A(){}
|
| -function B(){}
|
| -makeA = function(){return new A};
|
| -makeB = function(){return new B};
|
| -self.nativeConstructor(A);
|
| -self.nativeConstructor(B);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + // This code is inside 'setup' and so not accessible from the global scope.
|
| + function A(){}
|
| + function B(){}
|
| + makeA = function(){return new A()};
|
| + makeB = function(){return new B()};
|
| + self.nativeConstructor(A);
|
| + self.nativeConstructor(B);
|
| +})()""");
|
| +}
|
|
|
| testThing(a) {
|
| a.foo = 123;
|
|
|