bindings: Convert certain Exceptions into Promise rejections (#32923)

* Impl promise exception to rejection for methods

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Impl promise exception to rejection for getters

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Impl promise exception to rejection for static methods

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Add tests for exception to rejection

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-08-03 14:58:37 +02:00 committed by GitHub
parent fd83281657
commit f3bec0aed3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 291 additions and 20 deletions

View file

@ -13130,6 +13130,31 @@
{}
]
],
"exceptionToRejection.any.js": [
"738a8bedbcfe83a6f110bc6e6d133e31f80ea9ad",
[
"mozilla/exceptionToRejection.any.html",
{
"script_metadata": [
[
"title",
"Test that promise exception are converted to rejections"
]
]
}
],
[
"mozilla/exceptionToRejection.any.worker.html",
{
"script_metadata": [
[
"title",
"Test that promise exception are converted to rejections"
]
]
}
]
],
"fetch_cannot_overwhelm_system.window.js": [
"989231e9caedd099f5212bd2f9d377c83f929a22",
[