blob: 793edd6fd766660170f5b23d86e3bf851a27b7e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-date.prototype.setfullyear
description: >
Date.prototype.setFullYear - Date.prototype is itself not an
instance of Date
---*/
assert.throws(TypeError, function() {
Date.prototype.setFullYear(2012);
});
reportCompare(0, 0);
|