| Index: tests/compiler/dart2js_native/bound_closure_test.dart
|
| diff --git a/tests/compiler/dart2js_native/bound_closure_test.dart b/tests/compiler/dart2js_native/bound_closure_test.dart
|
| index 84d9145958d4c6a7fb329758ed18ab23a112a645..3509722ef336faa991d0b40bd1012d456de66469 100644
|
| --- a/tests/compiler/dart2js_native/bound_closure_test.dart
|
| +++ b/tests/compiler/dart2js_native/bound_closure_test.dart
|
| @@ -27,24 +27,27 @@ makeBB() native;
|
| makeCC() native;
|
| inscrutable(a) native;
|
|
|
| -void setup() native r"""
|
| -function BB() {}
|
| -BB.prototype.foo = function(u, v) {
|
| - return 'BB.foo(' + u + ', ' + v + ')';
|
| -};
|
| -
|
| -function CC() {}
|
| -CC.prototype.foo = function(u, v) {
|
| - return 'CC.foo(' + u + ', ' + v + ')';
|
| -};
|
| -
|
| -makeBB = function(){return new BB;};
|
| -makeCC = function(){return new CC;};
|
| -inscrutable = function(a){return a;};
|
| -
|
| -self.nativeConstructor(BB);
|
| -self.nativeConstructor(CC);
|
| -""";
|
| +void setup() {
|
| + JS('', r"""
|
| +(function(){
|
| + function BB() {}
|
| + BB.prototype.foo = function(u, v) {
|
| + return 'BB.foo(' + u + ', ' + v + ')';
|
| + };
|
| +
|
| + function CC() {}
|
| + CC.prototype.foo = function(u, v) {
|
| + return 'CC.foo(' + u + ', ' + v + ')';
|
| + };
|
| +
|
| + makeBB = function(){return new BB()};
|
| + makeCC = function(){return new CC()};
|
| + inscrutable = function(a){return a;};
|
| +
|
| + self.nativeConstructor(BB);
|
| + self.nativeConstructor(CC);
|
| +})()""");
|
| +}
|
|
|
| main() {
|
| nativeTesting();
|
|
|