mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +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
|
|
@ -54,7 +54,7 @@ already_AddRefed<PerformanceMark> PerformanceMark::Constructor(
|
|||
|
||||
if (performance->IsGlobalObjectWindow() &&
|
||||
performance->IsPerformanceTimingAttribute(aMarkName)) {
|
||||
aRv.ThrowTypeError<MSG_PMO_INVALID_TIMING_ATTR>();
|
||||
aRv.Throw(NS_ERROR_DOM_UT_INVALID_TIMING_ATTR);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue