github web-platform-tests/wpt merge_pr_48497

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
11 months ago

Don't immediately type-check when converting a v8::Value into a ScriptPromise<>

Typed promises in the generated bindings were introduced in
https://chromium-review.googlesource.com/c/chromium/src/+/5381805.

That CL converted to a rejected promise when the input value wasn't a
promise and was the wrong type. This reverts to the old behavior of
unconditionally wrapping the value in a resolved promise, and
handling type checking in the reaction.

Change-Id: I6c875be415bf62f2e7fdb9d1150f8deae5be0032
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5908893
Reviewed-by: Maks Orlovich morlovich@chromium.org
Reviewed-by: Andrey Kosyakov caseq@chromium.org
Auto-Submit: Nate Chapin japhet@chromium.org
Commit-Queue: Maks Orlovich morlovich@chromium.org
Cr-Commit-Position: refs/heads/main@{#1364916}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.