Closed
Bug 1170307
Opened 10 years ago
Closed 10 years ago
Use NonNullObject in Debugger.cpp
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
Details
Attachments
(1 file)
Calling NonNullObject() is shorter than what we have now.
Also:
- inline NonNullObject's fast path
- remove the ^L characters from Debugger.cpp (finally) in favor of
double blank lines.
Comment 1•10 years ago
|
||
(In reply to Jason Orendorff [:jorendorff] from comment #0)
> - remove the ^L characters from Debugger.cpp (finally) in favor of
> double blank lines.
Whoa whoa whoa -- these are super useful for code navigation!
Assignee | ||
Comment 2•10 years ago
|
||
More useful than searching for two blank lines in a row (\n\n\n)? Do you use the ^L support built into emacs?
I'd rather have navigation aids that don't look like some kind of ridiculous mistake to other hackers. They remove them; they don't add new ones when they add new sections...
This is properly a separate bug. though. I'll figure it out with whoever added the form feeds to gc/Marking.cpp and gc/Tracer.cpp.
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8627827 -
Flags: review?(shu)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Comment 4•10 years ago
|
||
Comment on attachment 8627827 [details] [diff] [review]
Inline the common path of NonNullObject; use it instead of ReportObjectRequired in the Debugger
Review of attachment 8627827 [details] [diff] [review]:
-----------------------------------------------------------------
This is nice. Would like the message thing cleared up though.
::: addon-sdk/source/test/test-weak-set.js
@@ +117,5 @@
>
> assert.throws(() => {
> add(items, 'foo');
> },
> + /^\w+ is not an object/,
Why the changes to these exception messages? I don't see any changes to messages in this patch.
Attachment #8627827 -
Flags: review?(shu) → review+
Assignee | ||
Comment 5•10 years ago
|
||
I reverted the changes in the addon sdk, as those had to do with changes to js.msg that aren't really necessary.
The current message is dumb, but I can fix it in a later bug.
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•