[blink] Add ModuleRecordEvaluationResult
The newly introduced will make the return type of ModuleRecord::Evaluation explicit. Currently an empty v8::Local return value corresponds to a successful evaluation and any returned value is treated as an exception. This is different when top-level await is enabled. In this case ModuleRecord::Evaluation always returns a Promise on success. Thus simply checking for an empty or non-empty v8::Local is no longer sufficient and we need a dedicated flag to detect Exceptions. Bug: 1022182, v8:9344 Change-Id: Ida7684bff79d68624548c99aee6e7b6f2e334afc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2105315 Commit-Queue: Camillo Bruni <cbruni@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#750914}
Showing
Please register or sign in to comment