Index: pkg/compiler/lib/src/patch_parser.dart |
diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart |
index a0ad4d9ac86df1a1e776aeab7a5e686453652e5d..1b9e8f39f926ccdd9fc815e84bdeadefcd5bd5f5 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -465,13 +465,13 @@ class NativeAnnotationHandler implements EagerAnnotationHandler<String> { |
} |
} |
-/// Annotation handler for pre-resolution detection of `@Js(...)` |
+/// Annotation handler for pre-resolution detection of `@JS(...)` |
/// annotations. |
class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> { |
const JsInteropAnnotationHandler(); |
bool hasJsNameAnnotation(MetadataAnnotation annotation) => |
- annotation.beginToken != null && annotation.beginToken.next.value == 'Js'; |
+ annotation.beginToken != null && annotation.beginToken.next.value == 'JS'; |
bool apply(Compiler compiler, |
Element element, |
@@ -493,7 +493,7 @@ class JsInteropAnnotationHandler implements EagerAnnotationHandler<bool> { |
JavaScriptBackend backend = compiler.backend; |
if (constant.getType(compiler.coreTypes).element != |
backend.jsAnnotationClass) { |
- compiler.reporter.internalError(annotation, 'Invalid @Js(...) annotation.'); |
+ compiler.reporter.internalError(annotation, 'Invalid @JS(...) annotation.'); |
} |
} |
} |