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

Unified Diff: sdk/lib/_internal/lib/js_helper.dart

Issue 227993002: Revert "Adding additional debug information for JS errors in the DOM." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/js_helper.dart
diff --git a/sdk/lib/_internal/lib/js_helper.dart b/sdk/lib/_internal/lib/js_helper.dart
index 1b9d57d0cdd7d47b1e876dbe0ba886c4481ce786..76d615f6fbb893eff708514ede31bea01d1e04a3 100644
--- a/sdk/lib/_internal/lib/js_helper.dart
+++ b/sdk/lib/_internal/lib/js_helper.dart
@@ -1650,17 +1650,6 @@ unwrapException(ex) {
if (thrownStackTrace == null) {
JS('void', r'#.$thrownJsError = #', error, ex);
}
- } else {
- // TODO(efortuna): Remove this branch. Added for debugging.
- if (JS('bool', '# instanceof window.Error', error)) {
- var msg = JS('String', '#.message', error);
- var fileName = JS('String', '#.fileName', error);
- var lineNumber = JS('String', '#.lineNumber', error);
- print('window.Error stack: $msg $fileName $lineNumber');
- } else {
- var stack = JS('String', 'new Error().stack');
- print('Exception error stack: $stack');
- }
}
return error;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698