blob: a4186d87dc3dc552c91018cf0b1f1d3bffdfccf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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.tojson
description: >
Date.prototype.toJSON.length is 1.
info: |
Date.prototype.toJSON ( key )
ECMAScript Standard Built-in Objects
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
---*/
verifyProperty(Date.prototype.toJSON, 'length', {
value: 1,
writable: false,
enumerable: false,
configurable: true,
});
reportCompare(0, 0);
|