Closed Bug 1481858 Opened 6 years ago Closed 6 years ago

Documentation for JS shell's 'newGlobal' function is out of date

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file, 1 obsolete file)

The documentation for the SpiderMonkey shell's 'newGlobal' built-in function doesn't describe all the options it accepts.
Attached patch Update JS shell's newGlobal function's docs. (obsolete) (deleted) — Splinter Review
Assignee: nobody → jimb
Status: NEW → ASSIGNED
Attachment #8998561 - Flags: review?(jdemooij)
Comment on attachment 8998561 [details] [diff] [review] Update JS shell's newGlobal function's docs. Review of attachment 8998561 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for fixing this! ::: js/src/shell/js.cpp @@ +7262,5 @@ > " Return the filename of the current script"), > > JS_FN_HELP("newGlobal", NewGlobal, 1, 0, > "newGlobal([options])", > " Return a new global object in a new compartment. If options\n" Nit: maybe this should be "new realm" instead of "new compartment" now?
Attachment #8998561 - Flags: review?(jdemooij) → review+
Updated per review. Carrying over r=jandem.
Attachment #8998561 - Attachment is obsolete: true
Attachment #8998990 - Flags: review+
Keywords: checkin-needed
Pushed by nerli@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/8f74896e5c9b Update JS shell's newGlobal function's docs. r=jandem
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: