Closed
Bug 1502280
Opened 7 years ago
Closed 7 years ago
Remove the case BinTokenReaderBase.errorReporter_ is null
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | disabled |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
10.23 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
https://searchfox.org/mozilla-central/rev/e0c879c86b95bdc752b1dbff6088169735674e4a/js/src/frontend/BinTokenReaderBase.cpp#37
> ErrorResult<JS::Error&>
> BinTokenReaderBase::raiseError(const char* description)
> {
> MOZ_ASSERT(!cx_->isExceptionPending());
> if (MOZ_LIKELY(errorReporter_)) {
> errorReporter_->reportErrorNoOffset(JSMSG_BINAST, description);
> } else {
> // Only true in testing code.
> ...
This should be removed in order to introduce better error reporting methods.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Removed the `!errorReporter_` case, and added dummy ErrorReporter to the test.
Currently the testcase doesn't test error case, so the dummy reporter crashes if error reporting methods are called.
Attachment #9023158 -
Flags: review?(dteller)
Comment on attachment 9023158 [details] [diff] [review]
Remove the case BinTokenReaderBase.errorReporter_ is null
Review of attachment 9023158 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsapi-tests/testBinTokenReaderTester.cpp
@@ +36,5 @@
> #if defined(XP_UNIX)
>
> #include <sys/param.h>
>
> +class DummyErrorReporter : public js::frontend::ErrorReporter
Could you document what this dummy error reporter is for?
Also, shouldn't this be out of the `#if defined(XP_UNIX)`?
Attachment #9023158 -
Flags: review?(dteller) → review+
Assignee | ||
Comment 3•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b456742a2cc22f56aac2a4d26063307b85135a6
Bug 1502280 - Remove the case BinTokenReaderBase.errorReporter_ is null. r=Yoric
Assignee | ||
Comment 4•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d3f4d556a89d3e5e72749314a0cf81d942fafc13
Bug 1502280 - followup: Fix non-unified build. r=bustage
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9b456742a2cc
https://hg.mozilla.org/mozilla-central/rev/d3f4d556a89d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•