Add MOZ_MUST_RETURN_FROM_CALLER to more ErrorResult methods
Categories
(Core :: DOM: Bindings (WebIDL), task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(3 files)
ThrowTypeError/ThrowRangeError should probably have the annotation too. Maybe others as well (NoteJSContextException, for example).
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
It doesn't really make sense to enforce this behavior for calls on stack
variables (which presumably we then want to do something with) and doesn't
necessarily make sense to enforce it for member variables either.
Assignee | ||
Comment 2•5 years ago
|
||
Our implementation modified the state, in addition to throwing the exception.
And the tests not only didn't test for this, but wouldn't have reached that
code anyway, due to the harness giving up as soon as anything failed.
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
The instability in Firefox causing the upstream test failure is a known issue with that test. See bug 1560454 (which is marked fixed, but was "fixed" by disabling the test)...
Comment 8•5 years ago
|
||
OK, I'll force merge this once it reaches central.
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4968ed697e0a
https://hg.mozilla.org/mozilla-central/rev/be26864d5a00
https://hg.mozilla.org/mozilla-central/rev/395ae88909c6
Updated•5 years ago
|
Description
•