Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2164483004: Allow callable JS objects. dartbug.com/25321 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Seems like this is all that is required to support callable JS objects. dartbug.com/25321 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index ebac46ba63cf0493ad0056769ced1aa2f54c5466..4bf0d1e2342c145a1108f018643470ee5352eac0 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -945,8 +945,6 @@ class JavaScriptBackend extends Backend {
cls.ensureResolved(resolution);
cls.forEachMember((ClassElement classElement, Element member) {
if (member.name == Identifiers.call) {
- reporter.reportErrorMessage(
- member, MessageKind.CALL_NOT_SUPPORTED_ON_NATIVE_CLASS);
return;
}
if (member.isSynthesized) return;
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | tests/html/js_typed_interop_callable_object_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698