blob: 7123fe988d0a34ecbde3447bfc0a0bb7adda5e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2018 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-object.prototype.tostring
description: is a String exotic object, let builtinTag be "String".
---*/
assert.sameValue(
Object.prototype.toString.call(new Date()),
"[object Date]",
"Object.prototype.toString.call(new Date()) returns [object Date]"
);
assert.sameValue(
Object.prototype.toString.call(Object(new Date())),
"[object Date]",
"Object.prototype.toString.call(Object(new Date())) returns [object Date]"
);
reportCompare(0, 0);
|