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

Unified Diff: lib/html/frog/html_frog.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10694082: Add the JS helper function to all libraries where we allow the native syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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:
Download patch
Index: lib/html/frog/html_frog.dart
diff --git a/lib/html/frog/html_frog.dart b/lib/html/frog/html_frog.dart
index cc66a2431ce041de0f0c1cc07f55536bb6b91066..b28da321087f7adeaa940f5a8676738ef788e7b8 100644
--- a/lib/html/frog/html_frog.dart
+++ b/lib/html/frog/html_frog.dart
@@ -56,14 +56,11 @@ class _JsSendPortSync implements SendPortSync {
callSync(var message) {
var serialized = _serialize(message);
- var result = _call(_id, serialized);
+ var result =
+ JS('var', @'ReceivePortSync.dispatchCall(#, #)', _id, serialized);
return _deserialize(result);
}
- static _call(num id, var message) native @"""
- return ReceivePortSync.dispatchCall(id, message);
- """;
-
}
class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker native "*AbstractWorker" {

Powered by Google App Engine
This is Rietveld 408576698