Closed Bug 196895 Opened 22 years ago Closed 22 years ago

nsJSContext::EvaluateString's use of aIsUndefined is inconsistent

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbradley, Assigned: jst)

Details

Attachments

(1 file)

EvaluateString (version taking an const nsAString& has code that doesn't test pointer aIsUndefined before assignment. The first assignment appears to be the only one that does this. I think all cases should check. This check was added to ExecuteScript with the same pattern.
Comment on attachment 116860 [details] [diff] [review] Adds the check of aIsUndefined sr=alecf
Attachment #116860 - Flags: superreview+
Comment on attachment 116860 [details] [diff] [review] Adds the check of aIsUndefined r=jst, I'm checking this in now.
Attachment #116860 - Flags: review+
Fixed. Thanks for the patch! (I did some additional cleanup when checking this in).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Component: DOM: Core → DOM: Core & HTML
QA Contact: desale → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: