blob: 39d7b06a8ad14f15ff42cec5c8fd38c39493ee3c [file] [log] [blame]
// 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.call({}),
"[object Object]",
"Object.prototype.toString.call({}) returns [object Object]"
);
assert.sameValue(
Object.prototype.toString.call(Object({})),
"[object Object]",
"Object.prototype.toString.call(Object({})) returns [object Object]"
);
assert.sameValue(
Object.prototype.toString.call(new Object({})),
"[object Object]",
"Object.prototype.toString.call(new Object({})) returns [object Object]"
);