v8/test
Mathias Bynens dd7190a979 [regexp] Add UseCounter for matchAll with non-g RegExp
Per the July TC39 meeting consensus, we'd like to make the
upcoming String.prototype.replaceAll proposal throw for
non-global RegExp searchValues. However,
String.prototype.matchAll currently does not throw in this
case, causing consistency concerns.

This patch adds a use counter for String.prototype.matchAll
with a non-global RegExp as the searchValue. Hopefully, this
pattern isn't too common in real-world code today, in which case
we can both a) change matchAll and b) proceed with the desired
replaceAll semantics.

https://github.com/tc39/proposal-string-replaceall/issues/16

V8 CL: https://chromium-review.googlesource.com/c/v8/v8/+/1718145
Chromium CL: https://chromium-review.googlesource.com/c/chromium/src/+/1718367

BUG=v8:9551

Change-Id: Ica660a0a6189d84c3d33398c98305d0bcb9f8c23
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1718145
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62913}
2019-07-25 12:53:02 +00:00
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest [regexp] Add UseCounter for matchAll with non-g RegExp 2019-07-25 12:53:02 +00:00
common [asm.js] Propagate language mode to exported functions. 2019-07-19 11:47:48 +00:00
debugger [debugger] Fix debug-evaluate for context-allocated this. 2019-07-05 12:14:35 +00:00
fuzzer [cleanup] Unify exports handling in WasmModuleBuilder 2019-07-11 15:50:30 +00:00
inspector Debugger: expose local scope for class member initializer 2019-07-18 14:26:12 +00:00
intl [Intl] Adding volume units. 2019-07-24 17:16:46 +00:00
js-perf-test [test] Add micro-benchmark tests for calls with local vars 2019-07-12 16:54:01 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message Reland "Reland "Let all early errors be SyntaxErrors."" 2019-07-08 10:15:46 +00:00
mjsunit [ic] Pass the converted value to the runtime when storing to a typed array 2019-07-23 15:53:56 +00:00
mkgrokdump Revert "Add postmortem debugging helper library" 2019-07-24 16:31:54 +00:00
mozilla [regexp] Add missing case for EscapeRegExpPattern 2019-07-09 08:11:51 +00:00
preparser Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
test262 [test262] Triage weakref tests status 2019-07-23 15:05:05 +00:00
torque [torque] Add Generic Structs 2019-07-23 15:26:16 +00:00
unittests [ptr-compr] Add CheckedInt32ToCompressedSigned and use it 2019-07-23 13:19:55 +00:00
wasm-api-tests [wasm-c-api] Drop Isolate::Enter/Exit calls... 2019-07-12 18:51:32 +00:00
wasm-js [testrunner] generalize test loader to accept multiple extensions 2019-06-25 12:12:11 +00:00
wasm-spec-tests [wasm][bulk-memory] Adjust elem and data segment to recent spec changes 2019-07-25 08:40:27 +00:00
webkit [regexp] Add missing case for EscapeRegExpPattern 2019-07-09 08:11:51 +00:00
BUILD.gn [wasm-c-api] Add tests and fixes 2019-05-28 09:57:04 +00:00
OWNERS [owners] Make test/ owned by COMMON_OWNERS 2019-06-06 20:56:09 +00:00