mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2053 - Part 5: Throw a DOMException instead of a JS exception for some errors
This commit is contained in:
parent
a0d52c0094
commit
ef8e3b5419
7 changed files with 23 additions and 8 deletions
|
|
@ -195,6 +195,7 @@ CreateException(JSContext* aCx, nsresult aRv, const nsACString& aMessage)
|
|||
case NS_ERROR_MODULE_DOM_ANIM:
|
||||
case NS_ERROR_MODULE_DOM_PUSH:
|
||||
case NS_ERROR_MODULE_DOM_MEDIA:
|
||||
case NS_ERROR_MODULE_DOM_USER_TIMING:
|
||||
if (aMessage.IsEmpty()) {
|
||||
return DOMException::Create(aRv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue