Closed
Bug 613092
Opened 14 years ago
Closed 14 years ago
Method "addScript" in jsdbgapi.cpp returns JS_FALSE instead of a pointer value
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
941 bytes,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
> EthogramScriptEntry *addScript(JSContext *cx, JSObject *obj, char *filename, JSString *jsfilename) {
> JSHashNumber hash = JS_HashString(filename);
> JSHashEntry **hep = JS_HashTableRawLookup(traceVisScriptTable, hash, filename);
> if (*hep != NULL)
> return JS_FALSE;
http://hg.mozilla.org/mozilla-central/annotate/tip/js/src/jsdbgapi.cpp#l2222
We should probably be returning NULL there.
Assignee | ||
Updated•14 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #491390 -
Flags: review?(mwsteele) → review?(dmandelin)
Updated•14 years ago
|
Attachment #491390 -
Flags: review?(dmandelin) → review+
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 491390 [details] [diff] [review]
fix
Requesting approval.
No functional change -- just returning null instead of false, to fix a build warning.
Attachment #491390 -
Flags: approval2.0?
Assignee | ||
Comment 3•14 years ago
|
||
actually I don't think there was a build warning in this case -- so, this is just a technical-correctness fix. (returning a zero pointer-value instead of a zero boolean value)
Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 491390 [details] [diff] [review]
fix
ah, and gavin reminds me that this should land on tracemonkey, not mozilla-central. Canceling approval2.0 request.
Attachment #491390 -
Flags: approval2.0?
Assignee | ||
Comment 5•14 years ago
|
||
Landed on tracemonkey: http://hg.mozilla.org/tracemonkey/rev/e852f9426d25
Status: ASSIGNED → NEW
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
•