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.
5 description: Invocation of `exec` method
9 13. Repeat, while done is false
10 a. Let result be RegExpExec(rx, S).
13 21.2.5.2.1 Runtime Semantics: RegExpExec ( R, S )
16 3. Let exec be Get(R, "exec").
17 4. ReturnIfAbrupt(exec).
18 5. If IsCallable(exec) is true, then
19 a. Let result be Call(exec, R, «S»).
20 features: [Symbol.replace]
26 toString: function() {
39 r[Symbol.replace](arg, '');
41 assert.sameValue(callCount, 1);
42 assert.sameValue(thisValue, r);
43 assert.sameValue(args.length, 1);
44 assert.sameValue(args[0], 'string form');