| Index: src/regexp.js
|
| diff --git a/src/regexp.js b/src/regexp.js
|
| index 1b72926844d28c999ea2c410e2e2ab631929f7f4..90d4d358e8d2653797d0b586fa8b306f481437e5 100644
|
| --- a/src/regexp.js
|
| +++ b/src/regexp.js
|
| @@ -143,6 +143,10 @@ function RegExpExecNoTests(regexp, string, start) {
|
| var matchInfo = %_RegExpExec(regexp, string, start, RegExpLastMatchInfo);
|
| if (matchInfo !== null) {
|
| $regexpLastMatchInfoOverride = null;
|
| + // ES6 21.2.5.2.2 step 18.
|
| + if (FLAG_harmony_regexps && regexp.sticky) {
|
| + regexp.lastIndex = matchInfo[CAPTURE1];
|
| + }
|
| RETURN_NEW_RESULT_FROM_MATCH_INFO(matchInfo, string);
|
| }
|
| regexp.lastIndex = 0;
|
|
|