blob: 74b7f781c933db318f55a13c3646729090f52ac7 (
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: Else, let builtinTag be "Object".
---*/
assert.sameValue(
Object.prototype.toString(),
"[object Object]",
"Object.prototype.toString() returns [object Object]"
);
assert.sameValue(
{}.toString(),
"[object Object]",
"({}).toString() returns [object Object]"
);
reportCompare(0, 0);
|