• Camillo Bruni's avatar
    [api] Introduce new HostImportModuleDynamicallyCallback · f0e5e3b2
    Camillo Bruni authored
    The new callback does no longer use ScriptOrModule but rather gets the
    host-defined options and the referrer name as separate arguments.
    
    This brings us one step closer to deprecate ScriptOrModule and putting
    the host-defined options in the script context.
    
    - Add v8::Data::IsFixedArray and cast helpers
    - Deprecate HostImportModuleDynamicallyWithImportAssertionsCallback soon
    - Add Script::Run entry point that explicitly takes host-defined
      options (unused yet)
    
    Bug: chromium:1244145
    Change-Id: I08bc92cfb3b79d840e766fb71b8d91d301f4399c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3263893
    Commit-Queue: Camillo Bruni <cbruni@chromium.org>
    Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77733}
    f0e5e3b2
test-modules.cc 48.3 KB