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

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

Issue 11877029: Correctly boolify feature test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Quotation marks Created 7 years, 11 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 | dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
index 0cec2f6cadb923263ab101b1a22f05c7e6dcd16f..57bf1e0f507403cbe624b168eca7d7564dd21385 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
@@ -879,7 +879,7 @@ $throw(ex) {
if (ex == null) ex = const NullThrownError();
var wrapper = new DartError(ex);
- if (JS('bool', 'Error.captureStackTrace')) {
+ if (JS('bool', '!!Error.captureStackTrace')) {
// Use V8 API for recording a "fast" stack trace (this installs a
// "stack" property getter on [wrapper]).
JS('void', r'Error.captureStackTrace(#, #)',
@@ -931,7 +931,7 @@ class DartError {
// trace and Chrome even applies source maps to the stack
// trace. Remeber, this method is only ever invoked by the browser
// when an uncaught exception occurs.
- if (JS('bool', 'Error.captureStackTrace') || (stack == null)) {
+ if (JS('bool', '!!Error.captureStackTrace') || (stack == null)) {
return dartException.toString();
} else {
return '$dartException\n$stack';
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698