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

Unified Diff: test/mjsunit/harmony/to-number.js

Issue 1324713002: [es6] Implement Date.prototype[@@toPrimitive] as C++ builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michi's comments. Created 5 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
« no previous file with comments | « test/mjsunit/harmony/to-name.js ('k') | test/mjsunit/harmony/to-primitive.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/to-number.js
diff --git a/test/mjsunit/harmony/to-number.js b/test/mjsunit/harmony/to-number.js
index 7125766840babebb57fa9e9b14e6797635d36f89..6dc4db59a27c6ef968127b30be04f3047dc66194 100644
--- a/test/mjsunit/harmony/to-number.js
+++ b/test/mjsunit/harmony/to-number.js
@@ -55,3 +55,7 @@ var d = {
};
assertEquals(987654321, %ToNumber(d));
assertEquals(987654321, %_ToNumber(d));
+
+var e = new Date(0);
+assertEquals(0, %ToNumber(e));
+assertEquals(0, %_ToNumber(e));
« no previous file with comments | « test/mjsunit/harmony/to-name.js ('k') | test/mjsunit/harmony/to-primitive.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698