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

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

Issue 1152333009: Delete dart2js specific private library code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 6 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/isolate_helper.dart ('k') | tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/isolate_serialization.dart
diff --git a/tool/input_sdk/private/isolate_serialization.dart b/tool/input_sdk/private/isolate_serialization.dart
index 51a294393e9052a81f83a4559e0b0bff86493249..f9130fabc55a934066c9b38245522e8682477051 100644
--- a/tool/input_sdk/private/isolate_serialization.dart
+++ b/tool/input_sdk/private/isolate_serialization.dart
@@ -60,7 +60,7 @@ class _Serializer {
if (x is _NativeJsSendPort) return serializeJsSendPort(x);
if (x is _WorkerSendPort) return serializeWorkerSendPort(x);
- if (x is Closure) return serializeClosure(x);
+ if (x is Function) return serializeClosure(x);
return serializeDartObject(x);
}
@@ -156,7 +156,7 @@ class _Serializer {
serializeCapability(CapabilityImpl x) => ['capability', x._id];
- serializeClosure(Closure x) {
+ serializeClosure(Function x) {
final name = IsolateNatives._getJSFunctionName(x);
if (name == null) {
unsupported(x, "Closures can't be transmitted:");
« no previous file with comments | « tool/input_sdk/private/isolate_helper.dart ('k') | tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698