v8/test/debugger/debug/side-effect
peterwmwong 76cb4fe626 [esnext] Ship String.p.matchAll/RegExp.p.[@@matchAll]
Enable --harmony-string-matchall by default.

String.prototype.matchAll behaves similarly to
String.prototype.match, but returns a full regexp
result object for each match in a global or sticky
regexp. This offers a simple way to iterate over
matches when access to e.g. capture groups is
needed.

const string = 'a b c';
const regex = /[ac]/g;
for (const match of string.matchAll(regex)) {
  console.log(`${match[0]} at ${match.index}`);
}
// a at 0
// c at 4

More information can be found here:
https://github.com/tc39/proposal-string-matchall

Drive-by: Update debug evaluate side effect
expectations to handle String.p.matchAll and
RegExp.p[@@matchAll]

Bug: v8:6890
Change-Id: Ie3e712af66689936b7d2a15df705b792ccf06bd3
Reviewed-on: https://chromium-review.googlesource.com/c/1377774
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
Cr-Commit-Position: refs/heads/master@{#58250}
2018-12-14 18:32:51 +00:00
..
debug-evaluate-no-side-effect-async.js Reland "[debug] add tests, mark side-effect-free (Typed)Array, WeakMap/Set fns" 2018-02-22 19:45:51 +00:00
debug-evaluate-no-side-effect-builtins-2.js Reland "[interpreter] Separate bytecodes for one-shot property loads and stores" 2018-09-27 13:56:53 +00:00
debug-evaluate-no-side-effect-builtins.js [esnext] Ship String.p.matchAll/RegExp.p.[@@matchAll] 2018-12-14 18:32:51 +00:00
debug-evaluate-no-side-effect-control.js [debug] allow calls to some builtins on temporary objects 2018-04-11 13:41:56 +00:00
debug-evaluate-no-side-effect-iife.js [debug] move side-effect tests into subfolder 2018-02-19 08:08:45 +00:00
debug-evaluate-no-side-effect-ops.js [debug] allow calls to some builtins on temporary objects 2018-04-11 13:41:56 +00:00
debug-evaluate-no-side-effect-regexp.js [debugger] allow some map, set, regexp and array builtins on tmp objects.. 2018-04-20 02:26:44 +00:00
debug-evaluate-no-side-effect-runtime-check.js Reland "[interpreter] Separate bytecodes for one-shot property loads and stores" 2018-09-27 13:56:53 +00:00
debug-evaluate-no-side-effect.js Reland "[interpreter] Separate bytecodes for one-shot property loads and stores" 2018-09-27 13:56:53 +00:00