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

Unified Diff: test/mjsunit/harmony/to-string.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-primitive.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/to-string.js
diff --git a/test/mjsunit/harmony/to-string.js b/test/mjsunit/harmony/to-string.js
index 4f03c466ea4ceea8c559f406f380b4e2f99e287c..103ba89d1dca1787488eedc9684363c35b459e42 100644
--- a/test/mjsunit/harmony/to-string.js
+++ b/test/mjsunit/harmony/to-string.js
@@ -48,3 +48,7 @@ var d = {
};
assertEquals("string", %ToString(d));
assertEquals("string", %_ToString(d));
+
+var e = new Date(0);
+assertEquals(e.toString(), %ToName(e));
+assertEquals(e.toString(), %_ToName(e));
« no previous file with comments | « test/mjsunit/harmony/to-primitive.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698