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

Issue 10695111: Add support for JS->Dart and Dart->dart via *PortSync. (Closed)

Created:
8 years, 5 months ago by vsm
Modified:
8 years, 5 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for JS->Dart and Dart->dart via *PortSync. Committed: https://code.google.com/p/dart/source/detail?r=9427

Patch Set 1 #

Patch Set 2 : Fix dartium status #

Patch Set 3 : Cleanup dart.js #

Patch Set 4 : Cleanup and comments #

Total comments: 7

Patch Set 5 : Rebase #

Total comments: 10

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -35 lines) Patch
M client/dart.js View 1 2 3 4 5 5 chunks +87 lines, -23 lines 0 comments Download
M lib/dom/templates/html/frog/html_frog.darttemplate View 1 2 3 4 3 chunks +178 lines, -4 lines 0 comments Download
M lib/dom/templates/html/frog/impl_Window.darttemplate View 1 chunk +6 lines, -1 line 0 comments Download
M lib/html/dartium/html_dartium.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M lib/html/frog/html_frog.dart View 6 chunks +186 lines, -5 lines 0 comments Download
M lib/isolate/serialization.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M tests/html/html.status View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests/html/js_interop_1_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/html/js_interop_2_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A tests/html/js_interop_3_test.dart View 1 chunk +57 lines, -0 lines 0 comments Download
A tests/html/js_interop_4_test.dart View 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vsm
8 years, 5 months ago (2012-07-06 07:30:15 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/10695111/diff/6001/tests/html/js_interop_3_test.dart File tests/html/js_interop_3_test.dart (right): https://chromiumcodereview.appspot.com/10695111/diff/6001/tests/html/js_interop_3_test.dart#newcode29 tests/html/js_interop_3_test.dart:29: test('js-to-dart', () { Should we update the description ...
8 years, 5 months ago (2012-07-06 07:48:47 UTC) #2
vsm
8 years, 5 months ago (2012-07-06 08:10:02 UTC) #3
thanks, fixed and landing.

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js
File client/dart.js (right):

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js#newc...
client/dart.js:60: message.receivePort.portId ];
Thanks - need to fix my js mode!

On 2012/07/06 07:48:47, kasperl wrote:
> No tabs.

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js#newc...
client/dart.js:133: var result = ReceivePortSync.map[id].callback(deserialized);
Added TODO.

On 2012/07/06 07:48:47, kasperl wrote:
> We should really wrap this in a try-catch and find a way of reporting back a
> serialized exception.

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js#newc...
client/dart.js:153: var result =
ReceivePortSync.map[data.id].callback(deserialized);
TODO added to propagate exception.

On 2012/07/06 07:48:47, kasperl wrote:
> We should really wrap this in a try-catch.

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js#newc...
client/dart.js:170: function Dart2JSSendPortSync(isolateId, portId) {
On 2012/07/06 07:48:47, kasperl wrote:
> Dart2JsSendPortSync is more readable to me (Js rather than JS).

Done.

https://chromiumcodereview.appspot.com/10695111/diff/6002/client/dart.js#newc...
client/dart.js:178: var string = JSON.stringify(message);
On 2012/07/06 07:48:47, kasperl wrote:
> Weird indentation.

Done.

Powered by Google App Engine
This is Rietveld 408576698