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

Unified Diff: pkg/compiler/lib/src/native/js.dart

Issue 1075283002: Add unary arithmetic (+#, -#) to ThrowBehaviorVisitor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | tests/compiler/dart2js/js_throw_behavior_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/native/js.dart
diff --git a/pkg/compiler/lib/src/native/js.dart b/pkg/compiler/lib/src/native/js.dart
index 2203b55f19394d1e10bb928db11461a0dee10283..7dc7d70f32e36a24edcc31607e8989fbf5f27e33 100644
--- a/pkg/compiler/lib/src/native/js.dart
+++ b/pkg/compiler/lib/src/native/js.dart
@@ -223,6 +223,8 @@ class ThrowBehaviorVisitor extends js.BaseVisitor<NativeThrowBehavior> {
return NativeThrowBehavior.NEVER;
NativeThrowBehavior result = visit(node.argument);
switch (node.op) {
+ case '+':
+ case '-':
case '!':
case '~':
case 'void':
« no previous file with comments | « no previous file | tests/compiler/dart2js/js_throw_behavior_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698