• Dan Clark's avatar
    Don't double-fetch a module specified on the d8 command line · 8ee40cfc
    Dan Clark authored
    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/+/3388130Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Commit-Queue: Marja Hölttä <marja@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78636}
    8ee40cfc
Name
Last commit
Last update
..
.gitignore Loading commit data...
d8-arguments.js Loading commit data...
d8-fuzzable-worker.js Loading commit data...
d8-multiple-module-exec.js Loading commit data...
d8-os.js Loading commit data...
d8-performance-now.js Loading commit data...
d8-realm-explicit-scope.js Loading commit data...
d8-worker-script.js Loading commit data...
d8-worker-script.txt Loading commit data...
d8-worker-sharedarraybuffer.js Loading commit data...
d8-worker-shutdown-empty.js Loading commit data...
d8-worker-shutdown-gc.js Loading commit data...
d8-worker-shutdown-spawn.js Loading commit data...
d8-worker-shutdown.js Loading commit data...
d8-worker-spawn-worker.js Loading commit data...
d8-worker.js Loading commit data...
enable-tracing.js Loading commit data...