v8/test
Jakob Gruber 0e22ec737b [regexp] Escape newlines when setting [[OriginalSource]]
This escapes LineTerminator characters in a regexp pattern when
creating the string that will be stored in the [[OriginalSource]] slot.

As an example, the source property for all following objects will equal
"\n" (a '\' character followed by 'n'):

  /\n/
  new RegExp("\n")
  new RegExp("\\n")

Bug: v8:1982, chromium:855009
Change-Id: I3b539497a0697e3d51ec969cae49308b0b312a19
Reviewed-on: https://chromium-review.googlesource.com/c/1384316
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58387}
2018-12-20 10:12:48 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest [dict] Remove HasKey from OrderedNameDictionary 2018-12-19 20:32:34 +00:00
common [objects.h splitting] Move HeapNumber to heap-number.h 2018-12-17 17:58:09 +00:00
debugger [Compiler] Fix flaky tsan error for bytecode flushing. 2018-12-18 14:49:13 +00:00
fuzzer Reduce input size limit of parser fuzzer to 2kB 2018-12-17 13:39:05 +00:00
inspector [reland] Don't allocate feedback vectors and feedback metadata in lite mode 2018-12-19 14:29:30 +00:00
intl [Intl] Use icu::Locale as storage in JSLocale 2018-12-20 06:31:05 +00:00
js-perf-test [test] Ensure random generator in JSTests does not use float arithmetic 2018-12-17 10:05:08 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [parser] Change how conflicting param and let in body declarations are detected 2018-12-19 17:10:57 +00:00
mjsunit [regexp] Escape newlines when setting [[OriginalSource]] 2018-12-20 10:12:48 +00:00
mkgrokdump [ubsan] Port Map to the new design 2018-11-13 06:59:12 +00:00
mozilla Revert "[runtime] Reduce spread/apply call max arguments" 2018-11-30 09:54:47 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [regexp] Escape newlines when setting [[OriginalSource]] 2018-12-20 10:12:48 +00:00
torque [nojit] Change builtin pointers to use Smis underneath 2018-12-17 15:35:59 +00:00
unittests [cleanup][heap] Fix kPointerSize usages in src/heap/ 2018-12-19 19:58:20 +00:00
wasm-js [wasm] fix js-api Memory and Table constructor 2018-12-10 23:32:05 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-11-28 11:42:27 +00:00
webkit [regexp] Escape newlines when setting [[OriginalSource]] 2018-12-20 10:12:48 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00