| Index: dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart b/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
|
| index 3e9ac55340336d7281762b21609abadf9d060d4d..f0d2ba132694a76c4202d5be7d0f4db53fc65c66 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart
|
| @@ -4,18 +4,20 @@
|
|
|
| // Make sure we can have a native with a name that is a JavaScript keyword.
|
|
|
| -class A native "*A" {
|
| - int delete() native;
|
| +@native("*A")
|
| +class A {
|
| + @native int delete();
|
| }
|
|
|
| -A makeA() native { return new A(); }
|
| +@native A makeA() { return new A(); }
|
|
|
| -void setup() native """
|
| +@native("""
|
| function A() {}
|
| A.prototype.delete = function() { return 87; };
|
|
|
| makeA = function(){return new A;};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| main() {
|
|
|