Closed Bug 1170307 Opened 10 years ago Closed 10 years ago

Use NonNullObject in Debugger.cpp

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

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.
(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!
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: nobody → jorendorff
Status: NEW → ASSIGNED
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+
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.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: