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

Issue 231743006: Run Dart closures invoked from JS in the correct Zone

Created:
6 years, 8 months ago by justinfagnani
Modified:
6 years, 8 months ago
Reviewers:
Chris Bracken, Jacob
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

Run Dart closures invoked from JS in the correct Zone BUG=https://code.google.com/p/dart/issues/detail?id=17301

Patch Set 1 #

Patch Set 2 : DO NOT SUBMIT: Non-working fix for round-trip functions #

Total comments: 2

Patch Set 3 : Don't work!: Add function-specific proxy caching #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -17 lines) Patch
M Source/bindings/dart/DartJsInterop.cpp View 1 2 3 chunks +30 lines, -17 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
justinfagnani
This CL depends on https://codereview.chromium.org/222203009 which wraps functions in the correct Zone in Dart. Since ...
6 years, 8 months ago (2014-04-10 00:26:44 UTC) #1
justinfagnani
6 years, 8 months ago (2014-04-10 00:43:08 UTC) #2
Jacob
lgtm
6 years, 8 months ago (2014-04-10 00:49:51 UTC) #3
justinfagnani
On 2014/04/10 00:49:51, Jacob wrote: > lgtm I tried to fix the round trip problem, ...
6 years, 8 months ago (2014-04-10 03:57:34 UTC) #4
Jacob
6 years, 8 months ago (2014-04-16 22:27:55 UTC) #5
lgtm. a couple minor comments.

https://codereview.chromium.org/231743006/diff/20001/Source/bindings/dart/Dar...
File Source/bindings/dart/DartJsInterop.cpp (right):

https://codereview.chromium.org/231743006/diff/20001/Source/bindings/dart/Dar...
Source/bindings/dart/DartJsInterop.cpp:100: Dart_ListSetAt(dartFunctionArgs, i +
offset, JsInterop::toDart(argsList->Get(i)));
nit: keep the style consistent and replace
i + offset with
offset++

https://codereview.chromium.org/231743006/diff/20001/Source/bindings/dart/Dar...
Source/bindings/dart/DartJsInterop.cpp:223: if
(DartUtilities::isFunction(domData, handle)) {
add a TODO to remove this isFunction check and switch to two native methods one
that takes functions and one that takes all other objects.

Powered by Google App Engine
This is Rietveld 408576698