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

Unified Diff: test/mjsunit/date.js

Issue 1317403002: Make Date.prototype an ordinary object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mozilla test 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 | « src/date.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/date.js
diff --git a/test/mjsunit/date.js b/test/mjsunit/date.js
index adebbd141f704cedd75e28b911084f87c8599060..33b5af4f00d85ad218b8321d36da6f243098fe62 100644
--- a/test/mjsunit/date.js
+++ b/test/mjsunit/date.js
@@ -341,6 +341,11 @@ date.getYear();
assertThrows(function() { Date.prototype.getYear.call(""); }, TypeError);
assertUnoptimized(Date.prototype.getYear);
+(function TestDatePrototypeOrdinaryObject() {
+ assertEquals(Object.prototype, Date.prototype.__proto__);
+ assertThrows(function () { Date.prototype.toString() }, TypeError);
+})();
+
delete Date.prototype.getUTCFullYear;
delete Date.prototype.getUTCMonth;
delete Date.prototype.getUTCDate;
« no previous file with comments | « src/date.js ('k') | test/mozilla/mozilla.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698