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

Unified Diff: test/mjsunit/messages.js

Issue 1574223002: Revert of [builtins] Refactor the remaining Date builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/debug-script.js ('k') | test/mjsunit/regress/regress-1945.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/messages.js
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
index 8da7e6bd7b950420d214e64b2f880ba9c1080f59..b42cc3019342760d9bde3a18eb8a204ad0cb252a 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -109,6 +109,11 @@
new DataView(1);
}, "First argument to DataView constructor must be an ArrayBuffer", TypeError);
+// kDateType
+test(function() {
+ Date.prototype.setYear.call({}, 1);
+}, "this is not a Date object.", TypeError);
+
// kDefineDisallowed
test(function() {
"use strict";
@@ -184,7 +189,7 @@
// kNotDateObject
test(function() {
- Date.prototype.getHours.call(1);
+ Date.prototype.setHours.call(1);
}, "this is not a Date object.", TypeError);
// kNotGeneric
« no previous file with comments | « test/mjsunit/debug-script.js ('k') | test/mjsunit/regress/regress-1945.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698