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

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

Issue 10134004: Simplify toDouble interceptor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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: dart/lib/compiler/implementation/lib/js_helper.dart
diff --git a/dart/lib/compiler/implementation/lib/js_helper.dart b/dart/lib/compiler/implementation/lib/js_helper.dart
index d28de30ef499a34d9e9ba1a2924cdd7d69747f8e..7dbccc9254214c0a35c9875ed25512e6891f7edd 100644
--- a/dart/lib/compiler/implementation/lib/js_helper.dart
+++ b/dart/lib/compiler/implementation/lib/js_helper.dart
@@ -912,8 +912,7 @@ builtin$round$0(receiver) {
builtin$toDouble$0(receiver) {
if (receiver is !num) return UNINTERCEPTED(receiver.toDouble());
- // TODO(ahe): Just return receiver?
- return JS('double', @'# + 0', receiver);
+ return receiver;
}
builtin$truncate$0(receiver) {
« 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