1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 Returns abrupt from IsRegExp(searchString).
8 21.1.3.6 String.prototype.endsWith ( searchString [ , endPosition] )
11 4. Let isRegExp be IsRegExp(searchString).
12 5. ReturnIfAbrupt(isRegExp).
15 7.2.8 IsRegExp ( argument )
17 2. Let isRegExp be Get(argument, @@match).
18 3. ReturnIfAbrupt(isRegExp).
19 features: [Symbol.match, String.prototype.endsWith]
23 Object.defineProperty(obj, Symbol.match, {
25 throw new Test262Error();
29 assert.throws(Test262Error, function() {
34 Object.defineProperty(regexp, Symbol.match, {
36 throw new Test262Error();
40 assert.throws(Test262Error, function() {