Add a test for Intl.Segmenter.prototype[@@toStringTag].

This was added to the specification in https://github.com/tc39/proposal-intl-segmenter/pull/29.
This commit is contained in:
Ms2ger 2018-07-06 12:23:26 +02:00
parent df1e9c626c
commit d258fcd3ba
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-intl.Segmenter.prototype-@@tostringtag
description: >
Checks the @@toStringTag property of the Segmenter prototype object.
info: |
Intl.Segmenter.prototype[ @@toStringTag ]
The initial value of the @@toStringTag property is the string value "Intl.Segmenter".
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Intl.Segmenter, Symbol.toStringTag]
---*/
verifyProperty(Intl.Segmenter.prototype, Symbol.toStringTag, {
value: "Intl.Segmenter",
writable: false,
enumerable: false,
configurable: true,
});