mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
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:
parent
fd83281657
commit
f3bec0aed3
11 changed files with 291 additions and 20 deletions
25
tests/wpt/mozilla/meta/MANIFEST.json
vendored
25
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -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",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue