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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

> 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.
OS: Linux → All
Hardware: x86_64 → All
Attached patch fixSplinter Review
Assignee: general → dholbert
Status: NEW → ASSIGNED
Attachment #491390 - Flags: review?(mwsteele)
Attachment #491390 - Flags: review?(mwsteele) → review?(dmandelin)
Attachment #491390 - Flags: review?(dmandelin) → review+
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?
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)
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?
Status: ASSIGNED → NEW
Whiteboard: fixed-in-tracemonkey
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.

Attachment

General

Created:
Updated:
Size: