mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
As per spec changes (https://github.com/tc39/proposal-string-matchall/pull/35), removed tests related to the removed IsRegExp call. To prevent older implementations (not observing spec change) from passing, added a new test to verify the reduced number of observable calls to IsRegExp. Also fix a misreference in `features` frontmatter.
18 lines
565 B
JavaScript
18 lines
565 B
JavaScript
// 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.matchAll` property descriptor
|
|
info: |
|
|
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
|
false, [[Configurable]]: false }.
|
|
includes: [propertyHelper.js]
|
|
features: [Symbol.matchAll]
|
|
---*/
|
|
|
|
assert.sameValue(typeof Symbol.matchAll, 'symbol');
|
|
verifyNotEnumerable(Symbol, 'matchAll');
|
|
verifyNotWritable(Symbol, 'matchAll');
|
|
verifyNotConfigurable(Symbol, 'matchAll');
|