v8/test/mjsunit/d8
Dan Clark 8ee40cfc1f Don't double-fetch a module specified on the d8 command line
Shell::FetchModuleTree assumes that the module at file_name wasn't
already fetched. Shell::ExecuteModule is calling into
FetchModuleTree without checking if the module is already in the module
map, violating this assumption.

This change fixes this by having Shell::ExecuteModule check for the
existence of the module before calling into Shell::ExecuteModule, the
same way that Shell::DoHostImportModuleDynamically does.

Bug: v8:12530
Change-Id: Ia038cbd1715e85c9c92c4554fd486c657ef952e8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3388130
Reviewed-by: Marja Hölttä <marja@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78636}
2022-01-16 12:44:37 +00:00
..
.gitignore
d8-arguments.js [d8] only add arguments object if arguments are provided 2018-10-23 11:46:53 +00:00
d8-fuzzable-worker.js [test] Make worker related tests more fuzzable 2021-01-26 12:09:59 +00:00
d8-multiple-module-exec.js Don't double-fetch a module specified on the d8 command line 2022-01-16 12:44:37 +00:00
d8-os.js Reland "[mjsunit][tools][d8] Full roundtrip tickprocessor test" 2021-06-02 07:02:48 +00:00
d8-performance-now.js
d8-realm-explicit-scope.js [web snapshot] Introduce an ExplicitRealmScope in d8 2021-06-04 08:48:16 +00:00
d8-worker-script.js Revert "[d8] Cleanup message queues" 2019-07-23 14:25:38 +00:00
d8-worker-script.txt [d8] Update new Worker API to match the Web API 2018-09-20 00:10:28 +00:00
d8-worker-sharedarraybuffer.js [cleanup] Rename uses of 'neuter' to 'detach' 2019-08-06 14:24:05 +00:00
d8-worker-shutdown-empty.js Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
d8-worker-shutdown-gc.js Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
d8-worker-shutdown-spawn.js Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
d8-worker-shutdown.js [d8] Use explicit variable to track Worker state 2021-12-08 14:49:06 +00:00
d8-worker-spawn-worker.js [d8] Update new Worker API to match the Web API 2018-09-20 00:10:28 +00:00
d8-worker.js [cleanup] Rename uses of 'neuter' to 'detach' 2019-08-06 14:24:05 +00:00
enable-tracing.js