| Index: dart/tests/compiler/dart2js_foreign/native_null_closure_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_null_closure_test.dart b/dart/tests/compiler/dart2js_foreign/native_null_closure_test.dart
|
| index 8a368d21648da3cab3b2a356a0df92b10e3598f8..f916a1211fc3bcc04c002330783bee2e0a5a0828 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_null_closure_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_null_closure_test.dart
|
| @@ -4,21 +4,23 @@
|
|
|
| typedef void MyFunctionType();
|
|
|
| -class A native "*A" {
|
| - setClosure(MyFunctionType f) native;
|
| - check(MyFunctionType f) native;
|
| - invoke() native;
|
| +@native("*A")
|
| +class A {
|
| + @native setClosure(MyFunctionType f);
|
| + @native check(MyFunctionType f);
|
| + @native invoke();
|
| }
|
|
|
| -makeA() native { return new A(); }
|
| +@native makeA() { return new A(); }
|
|
|
| -void setup() native """
|
| +@native("""
|
| function A() {}
|
| A.prototype.setClosure = function(f) { this.f = f; };
|
| A.prototype.check = function(f) { return this.f === f; };
|
| A.prototype.invoke = function() { return this.f(); };
|
| makeA = function(){return new A;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| main() {
|
|
|