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

Issue 88783002: Isolate.spawn{Uri} only reports errors asynchronously. (Closed)

Created:
7 years ago by floitsch
Modified:
7 years ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Isolate.spawn{Uri} only reports errors asynchronously. It is generally considered bad style to throw synchronous and asynchronous errors. This CL catches all synchronous errors and reports them in the asynchronous future that is returned. R=iposva@google.com, lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=31131

Patch Set 1 #

Patch Set 2 : Fix dart2js. #

Total comments: 10

Patch Set 3 : Address comments. Rebase. #

Patch Set 4 : Rebase #

Total comments: 12

Patch Set 5 : Address comments. #

Patch Set 6 : Reupload due to error 500. #

Total comments: 9

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -48 lines) Patch
M runtime/lib/isolate_patch.dart View 1 2 3 4 5 6 1 chunk +8 lines, -9 lines 0 comments Download
M runtime/lib/print_patch.dart View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/isolate_test.cc View 1 2 3 4 1 chunk +47 lines, -8 lines 0 comments Download
M sdk/lib/_internal/lib/isolate_patch.dart View 1 2 3 4 1 chunk +18 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/dart.dart View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tests/isolate/static_function_test.dart View 1 2 3 4 5 6 2 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
floitsch
Unfortunately the VM test grew, because the asynchronous error needs more built-in functions (and needs ...
7 years ago (2013-11-26 17:18:36 UTC) #1
floitsch
Moving Lasse from CC to Reviewer after the changes to dart2js libraries.
7 years ago (2013-11-26 17:56:00 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/88783002/diff/20001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/88783002/diff/20001/runtime/lib/isolate_patch.dart#newcode117 runtime/lib/isolate_patch.dart:117: // TODO(floitsch): this relies on the fact that ...
7 years ago (2013-11-27 11:41:28 UTC) #3
floitsch
https://codereview.chromium.org/88783002/diff/20001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/88783002/diff/20001/runtime/lib/isolate_patch.dart#newcode117 runtime/lib/isolate_patch.dart:117: // TODO(floitsch): this relies on the fact that any ...
7 years ago (2013-11-27 13:57:06 UTC) #4
floitsch
ping.
7 years ago (2013-12-06 18:16:32 UTC) #5
floitsch
On 2013/12/06 18:16:32, floitsch wrote: > ping. ping
7 years ago (2013-12-10 10:38:48 UTC) #6
Ivan Posva
LGTM once the code necessary for tests has been moved to the test script. Adding ...
7 years ago (2013-12-12 12:11:49 UTC) #7
floitsch
Thanks Ivan. @Lasse: could you PTAL for the status-file changes. https://codereview.chromium.org/88783002/diff/60001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/88783002/diff/60001/runtime/lib/isolate_patch.dart#newcode245 ...
7 years ago (2013-12-12 21:08:37 UTC) #8
Lasse Reichstein Nielsen
Still LGTM. https://codereview.chromium.org/88783002/diff/100001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/88783002/diff/100001/runtime/lib/isolate_patch.dart#newcode248 runtime/lib/isolate_patch.dart:248: }); How about doing the same as ...
7 years ago (2013-12-13 11:16:58 UTC) #9
floitsch
https://codereview.chromium.org/88783002/diff/100001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/88783002/diff/100001/runtime/lib/isolate_patch.dart#newcode248 runtime/lib/isolate_patch.dart:248: }); On 2013/12/13 11:16:58, Lasse Reichstein Nielsen wrote: > ...
7 years ago (2013-12-13 12:13:37 UTC) #10
Lasse Reichstein Nielsen
https://codereview.chromium.org/88783002/diff/100001/sdk/lib/_internal/pub/lib/src/dart.dart File sdk/lib/_internal/pub/lib/src/dart.dart (right): https://codereview.chromium.org/88783002/diff/100001/sdk/lib/_internal/pub/lib/src/dart.dart#newcode130 sdk/lib/_internal/pub/lib/src/dart.dart:130: Isolate.spawnUri(Uri.parse(message['uri']), [], message['message']) That is reasonable.
7 years ago (2013-12-13 12:16:30 UTC) #11
Lasse Reichstein Nielsen
lgtm
7 years ago (2013-12-13 12:19:24 UTC) #12
floitsch
7 years ago (2013-12-13 13:05:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 manually as r31131 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698