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

Issue 8694007: Ensure that exception message is printed. (Closed)

Created:
9 years ago by sra1
Modified:
9 years ago
Reviewers:
Jennifer Messerly
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Ensure that exception message is printed. This change improves the user experience for JS exceptions that pass through a Dart try-catch by making the Dart exception's toString() appear in the output. There is one missing piece: all toplevel code needs to be wrapped in a try-catch that calls $toDartException. Otherwise users will continue to see JS exceptions at the command-line. BUG= TEST=

Patch Set 1 #

Patch Set 2 : x #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -29 lines) Patch
M frog/corejs.dart View 1 1 chunk +30 lines, -14 lines 2 comments Download
M frog/frogsh View 1 2 chunks +31 lines, -15 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sra1
9 years ago (2011-11-29 00:26:06 UTC) #1
Jennifer Messerly
9 years ago (2011-11-29 00:46:18 UTC) #2
lgtm

http://codereview.chromium.org/8694007/diff/2001/frog/corejs.dart
File frog/corejs.dart (right):

http://codereview.chromium.org/8694007/diff/2001/frog/corejs.dart#newcode263
frog/corejs.dart:263: try {  // toString is in a try-catch due to Issue 470.
Issue 470 is fixed--can you see if the try-catch can be removed?

http://codereview.chromium.org/8694007/diff/2001/frog/corejs.dart#newcode297
frog/corejs.dart:297: // sra: Yes.
Can you add context about what conditions it happens? e.g.
// This happens with operators that aren't found because noSuchMethod fallbacks
are not correctly generated

(I think that's the only condition this should happen, but maybe you hit a
different one)

Powered by Google App Engine
This is Rietveld 408576698