1 // Copyright (C) 2018 Peter Wong. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 description: Re-throws errors when calling @@matchAll
7 String.prototype.matchAll ( regexp )
9 2. If regexp is neither undefined nor null, then
10 a. Let matcher be ? GetMethod(regexp, @@matchAll).
11 b. If matcher is not undefined, then
12 i. Return ? Call(matcher, regexp, « O »).
13 features: [Symbol.matchAll, String.prototype.matchAll]
17 Object.defineProperty(regexp, Symbol.matchAll, {
19 throw new Test262Error();
23 assert.throws(Test262Error, function() {