Closed
Bug 518463
Opened 15 years ago
Closed 15 years ago
JS_GetStringBytes/Chars replacements
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
1.58 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
Just in case any JSAPI clients are interested in correct behavior (or at least not-randomly-weird behavior) on OOM. ctypes for instance. The proposed APIs are: // Always returns a null-terminated string on success. Reports OOM and // returns NULL on failure. const jschar * JS_GetStringCharsZ(JSContext *cx, JSString *str); // Same. const char * JS_GetStringBytesZ(JSContext *cx, JSString *str); Trivial to implement.
Assignee | ||
Comment 1•15 years ago
|
||
Assignee: general → jorendorff
Attachment #402916 -
Flags: review?(brendan)
Updated•15 years ago
|
Attachment #402916 -
Flags: review?(brendan) → review+
Comment 2•15 years ago
|
||
Comment on attachment 402916 [details] [diff] [review] v1 The right thing. Thanks, /be
Assignee | ||
Comment 3•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/df46957a46f1
Whiteboard: fixed-in-tracemonkey
Comment 4•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/df46957a46f1
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•