v8/src/d8
Vicky Kontoura 385f304df9 [d8] Support more ways of passing source code to Realm.eval()
This CL updates Realm.eval() to also handle reading source code as a
JavaScript function or from a file. To distinguish between different
argument types, an additional options bag needs to be provided. If no
options bag is provided, the behavior defaults to the current one,
which is reading source code from a string.

Bug: v8:11525, v8:11706
Change-Id: I68238335eb91171041dca2c83db211c40dd68359
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2944435
Reviewed-by: Marja Hölttä <marja@chromium.org>
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Vicky Kontoura <vkont@google.com>
Cr-Commit-Position: refs/heads/master@{#75021}
2021-06-08 14:44:16 +00:00
..
async-hooks-wrapper.cc Reland "[api] Add v8::Isolate::ThrowError helper" 2021-04-16 11:48:05 +00:00
async-hooks-wrapper.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
cov.cc [d8] Fix compilation for v8_fuzzilli 2020-11-18 09:38:39 +00:00
cov.h Integrate V8 Builtin coverage to Fuzzilli 2020-07-08 09:29:00 +00:00
d8-console.cc Reland "[api] Add v8::Isolate::ThrowError helper" 2021-04-16 11:48:05 +00:00
d8-console.h
d8-js.cc
d8-platforms.cc [d8] Fix job execution on the predictable platform 2021-06-08 07:44:37 +00:00
d8-platforms.h [predictable] Run worker task on the foreground task runner 2020-05-06 15:49:07 +00:00
d8-posix.cc Reland "[api] Add v8::Isolate::ThrowError helper" 2021-04-16 11:48:05 +00:00
d8-test.cc [fastcall] Resolve CFunction overloads based on arity 2021-05-27 21:30:55 +00:00
d8-windows.cc
d8.cc [d8] Support more ways of passing source code to Realm.eval() 2021-06-08 14:44:16 +00:00
d8.h [d8] Support more ways of passing source code to Realm.eval() 2021-06-08 14:44:16 +00:00
OWNERS Remove ulan@ from OWNERS 2021-06-08 13:10:21 +00:00