blob: a422075aa0ee959b331ab4d1944d24f789ae7b60 [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: 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]"
);