blob: e63affc7cc65f708b4108c38afa3256cd15ed976 [file] [log] [blame]
// Copyright (C) 2020 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.datetimeformat.prototype-@@tostringtag
description: >
Object.prototype.toString utilizes Intl.DateTimeFormat.prototype[@@toStringTag].
info: |
Object.prototype.toString ( )
[...]
14. Else, let builtinTag be "Object".
15. Let tag be ? Get(O, @@toStringTag).
16. If Type(tag) is not String, set tag to builtinTag.
17. Return the string-concatenation of "[object ", tag, and "]".
Intl.DateTimeFormat.prototype [ @@toStringTag ]
The initial value of the @@toStringTag property is the String value "Intl.DateTimeFormat".
features: [Symbol.toStringTag]
---*/
assert.sameValue(Object.prototype.toString.call(Intl.DateTimeFormat.prototype), "[object Intl.DateTimeFormat]");
assert.sameValue(Object.prototype.toString.call(new Intl.DateTimeFormat()), "[object Intl.DateTimeFormat]");