You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc2deb3
Browse filesBrowse the repository at this point in the historyBrowse files
Original commit message:
[api][module] Type-check synthetic module evaluation steps
Synthetic module evaluation steps are required to return a Promise,
which becomes the module's top-level capability. Their signature
returned a MaybeLocal<Value> though, so that requirement was only
enforced by a CHECK in SyntheticModule::Evaluate().
SyntheticModuleEvaluationSteps now returns a MaybeLocal<Promise>, with a
matching CreateSyntheticModule() overload. The old signature remains
available as LegacySyntheticModuleEvaluationSteps so that embedders can
be migrated in a separate CL; it will be
deprecated and then removed once embedders migrate.
d8 and the existing tests move to the Promise-returning version,
with one cctest checking the legacy version.
Bug: 545375591
Change-Id: Id55db730678455f81394bf8a68f66f93d22f5547
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8223168
Reviewed-by: Olivier Flückiger <olivf@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Caio Lima <caiolima@igalia.com>
Cr-Commit-Position: refs/heads/main@{#109273}
Refs: v8/v8@970d651
Co-authored-by: Caio Lima <caiolima@igalia.com>
0 commit comments