Closed
Bug 582999
Opened 14 years ago
Closed 14 years ago
putstr function for JS shell
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dherman, Assigned: dherman)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
(deleted),
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
AFACT, it's not possible to print output without a newline in the JS shell. To write a REPL for Narcissus, I'd like to be able to print a user prompt without a newline. I'll attach a simple patch for a puts(str) function.
Dave
Comment 1•14 years ago
|
||
True Unix nerds recall that unlike fputs(3S), puts appends a newline. So maybe the name should be something different, e.g. putstr.
/be
Assignee | ||
Updated•14 years ago
|
Summary: puts function for JS shell → putstr function for JS shell
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #461280 -
Flags: review?(brendan)
Comment 3•14 years ago
|
||
Comment on attachment 461280 [details] [diff] [review]
PutStr function for shell
Stealing Brendan's review. Looks trivial. Code mostly duplicated from Print.
Attachment #461280 -
Flags: review?(brendan) → review+
Comment 4•14 years ago
|
||
We usually test argc != 0, not argc >= 1. Uber-nit.
/be
Assignee | ||
Comment 5•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 6•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•