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

Unified Diff: tool/input_sdk/private/native_helper.dart

Issue 1905803002: Fix undefined method errors adding no-op stubs for methods needed by dart2js but irrelevant in ddc.… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: ptal Created 4 years, 8 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
« no previous file with comments | « tool/input_sdk/private/interceptors.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/native_helper.dart
diff --git a/tool/input_sdk/private/native_helper.dart b/tool/input_sdk/private/native_helper.dart
index 2edaa4d4a4431f1e0c73490879cf2dbfabab7d17..de77f66713e342b445ae49b1b60202fcf6059a93 100644
--- a/tool/input_sdk/private/native_helper.dart
+++ b/tool/input_sdk/private/native_helper.dart
@@ -16,3 +16,16 @@ void defineProperty(var obj, String property, var value) {
property,
value);
}
+
+// Obsolete in dart dev compiler. Added only so that the same version of
+// dart:html can be used in dart2js an dev compiler.
+/*=F*/ convertDartClosureToJS /*<F>*/ (/*=F*/ closure, int arity) {
+ return closure;
+}
+
+// Warning: calls to these methods need to be removed before custom elements
+// and cross-frame dom objects behave correctly in ddc.
+// See https://github.com/dart-lang/dev_compiler/issues/517
+setNativeSubclassDispatchRecord(proto, interceptor) { }
+findDispatchTagForInterceptorClass(interceptorClassConstructor) {}
+makeLeafDispatchRecord(interceptor) {}
« no previous file with comments | « tool/input_sdk/private/interceptors.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698