v8/test/unittests/api
Simon Zünd a5fd60e15a Calls to {console} require an access check for the provided arguments
This CL adds an access check for the arguments to all calls to
{console} like {console.log}. This is needed since the DevTools
protocol notificiation event does not contain the context in which
the {console.log} call occurred. Only the context of the argument.
When DevTools then reads properties for the preview of the argument,
it uses arguments context, instead of the calling context, potentially
leaking objects/exceptions into the calling context.

Bug: chromium:987502, chromium:986393
Change-Id: I6f7682f7bee94a28ac61994bad259bd003511c39
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1741664
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63122}
2019-08-08 07:19:54 +00:00
..
access-check-unittest.cc Calls to {console} require an access check for the provided arguments 2019-08-08 07:19:54 +00:00
exception-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
interceptor-unittest.cc [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
isolate-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
remote-object-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
resource-constraints-unittest.cc [api] Add a way to specify the max heap size in ResourceConstraints 2019-06-06 10:22:56 +00:00
v8-object-unittest.cc [cleanup] Add %PrepareFunctionForOptimize for tests that use %OptimizeOsr 2019-06-18 16:47:29 +00:00