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: Initialization of `lastIndex` property for "global" instances
8 21.2.5.8 RegExp.prototype [ @@replace ] ( string, replaceValue )
11 10. If global is true, then
13 c. Let setStatus be Set(rx, "lastIndex", 0, true).
15 features: [Symbol.replace]
22 assert.sameValue(r[Symbol.replace]('aa', 'x'), 'xx');