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

Unified Diff: dart/lib/compiler/implementation/lib/interceptors.dart

Issue 10870066: Support unary - operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix unparser to handle that negate is no longer a keyword. Created 8 years, 4 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
Index: dart/lib/compiler/implementation/lib/interceptors.dart
diff --git a/dart/lib/compiler/implementation/lib/interceptors.dart b/dart/lib/compiler/implementation/lib/interceptors.dart
index a851330645a26aecccdccaa146f20270aef02221..4e936501974b14b61e19221644e0f9a61ebc8693 100644
--- a/dart/lib/compiler/implementation/lib/interceptors.dart
+++ b/dart/lib/compiler/implementation/lib/interceptors.dart
@@ -414,6 +414,7 @@ isInfinite(receiver) {
|| JS('bool', @'# == -Infinity', receiver);
}
+// TODO(ahe): Remove this method when we don't support operator negate.
negate(receiver) {
if (receiver is !num) return UNINTERCEPTED(receiver.negate());

Powered by Google App Engine
This is Rietveld 408576698