Closed
Bug 1337465
Opened 8 years ago
Closed 8 years ago
JS shell namespace objects have poor help strings
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink)
Details
Attachments
(1 file)
6.29 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
js> help(os.file)
os.file - interface object
os.file.readFile os.file.readRelativeToScript os.file.writeTypedArrayToFile os.file.redirect os.file.redirectErr os.file.close
Assignee | ||
Comment 1•8 years ago
|
||
I'm not sure who to use for my shell-related reviews. So I'll pick on you by default.
With this patch:
js> help(os.file)
os.file - interface object
readFile(filename, ["binary"])
readRelativeToScript(filename, ["binary"])
writeTypedArrayToFile(filename, data)
redirect([path-or-object])
redirectErr([path-or-object])
close(object)
I've long had plans to split up the huge pile of shell functions into namespaces. It'll probably never happen and should perhaps be replaced with spidernode anyway, but I'll still incrementally move that way when I have the chance.
Attachment #8834519 -
Flags: review?(jcoppeard)
Comment 2•8 years ago
|
||
Comment on attachment 8834519 [details] [diff] [review]
Create proper help strings for JS shell namespace objects
Review of attachment 8834519 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/shell/jsshell.cpp
@@ +102,1 @@
> return true;
Should this return false if the specified property wasn't found?
Attachment #8834519 -
Flags: review?(jcoppeard) → review+
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Jon Coppeard (:jonco) from comment #2)
> Comment on attachment 8834519 [details] [diff] [review]
> Create proper help strings for JS shell namespace objects
>
> Review of attachment 8834519 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: js/src/shell/jsshell.cpp
> @@ +102,1 @@
> > return true;
>
> Should this return false if the specified property wasn't found?
Oh, good point. I could just assert. But maybe we do oom simulation during startup? Yeah, I'll throw. Thanks.
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d4116cb3c9d
Create proper help strings for JS shell namespace objects, r=jonco
Comment 5•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•