blob: a412432545788b5aa54177ceed2667d51b5249e9 [file] [log] [blame]
// Copyright (C) 2018 Peter Wong. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: pending
description: |
`Symbol.toStringTag` property descriptor
info: |
The initial value of the @@toStringTag property is the string value "String
Iterator".
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }.
features: [Symbol.matchAll, Symbol.toStringTag]
includes: [propertyHelper.js]
---*/
var RegExpStringIteratorProto = Object.getPrototypeOf(/./[Symbol.matchAll](''));
assert.sameValue(RegExpStringIteratorProto[Symbol.toStringTag], 'RegExp String Iterator');
verifyNotEnumerable(RegExpStringIteratorProto, Symbol.toStringTag);
verifyNotWritable(RegExpStringIteratorProto, Symbol.toStringTag);
verifyConfigurable(RegExpStringIteratorProto, Symbol.toStringTag);