v8/test
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
..
benchmarks [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
bigint Reland^2 "[bigint] Karatsuba multiplication" 2021-06-07 11:01:14 +00:00
cctest [runtime] Rename Builtins::Name to Builtin 1/2 2021-06-07 20:05:44 +00:00
common [wasm] Simplify Immediates in decoder 2021-06-04 12:18:26 +00:00
debugger [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
debugging [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
fuzzer [wasm-gc] Allow struct.new_with_rtt as constant expression 2021-06-08 08:57:07 +00:00
fuzzilli Fix unhandled promise rejections in REPRL mode 2020-09-30 13:34:23 +00:00
inspector [debug][cleanup] Use consistent StepInto and StepOver naming. 2021-06-01 11:26:57 +00:00
intl Implement "Extend TimeZoneName Option Proposal" 2021-05-27 08:49:22 +00:00
js-perf-test [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
memory [snapshot] Fix the Memory.json benchmark 2021-04-28 07:54:34 +00:00
message [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
mjsunit [d8] Support more ways of passing source code to Realm.eval() 2021-06-08 14:44:16 +00:00
mkgrokdump [build] Fold v8_wrappers into v8_libbase 2021-02-25 10:56:20 +00:00
mozilla Re-enable mozilla/ecma/Date/15.9.5.26-1 on arm64 2021-05-25 09:20:52 +00:00
test262 [Object.hasOwn] Add Test262 feature-to-flag mapping 2021-06-07 10:39:54 +00:00
torque [torque] Add LazyNode support 2021-02-23 16:51:53 +00:00
unittests [wasm-gc] Use feature over flag for rtt.fresh_sub 2021-06-08 10:54:12 +00:00
wasm-api-tests [trap-handler] Remove dependencies on macros, globals, flags 2021-05-17 09:32:40 +00:00
wasm-js [wasm] Update spec tests 2021-06-07 11:45:44 +00:00
wasm-spec-tests [wasm] Update spec tests 2021-06-07 11:45:44 +00:00
webkit [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00
BUILD.gn Reland^2 "[bigint] Karatsuba multiplication" 2021-06-07 11:01:14 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00