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]
16 RegExp.prototype[Symbol.matchAll] = function() {
17 throw new Test262Error();
20 assert.throws(Test262Error, function() {