blob: ea738e63dbd26105678171e8071c6c42e7657129 [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.pluralrules.prototype-tostringtag
description: >
Object.prototype.toString utilizes Intl.PluralRules.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.PluralRules.prototype [ @@toStringTag ]
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
features: [Symbol.toStringTag]
---*/
Object.defineProperty(Intl.PluralRules.prototype, Symbol.toStringTag, {
value: "test262",
});
assert.sameValue(Object.prototype.toString.call(Intl.PluralRules.prototype), "[object test262]");
assert.sameValue(Object.prototype.toString.call(new Intl.PluralRules()), "[object test262]");