Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't immediately type-check when converting a v8::Value into a Scrip…
…tPromise<> 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 <[email protected]> Reviewed-by: Andrey Kosyakov <[email protected]> Auto-Submit: Nate Chapin <[email protected]> Commit-Queue: Maks Orlovich <[email protected]> Cr-Commit-Position: refs/heads/main@{#1364916}
- Loading branch information