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 |