Closed Bug 575517 Opened 14 years ago Closed 14 years ago

Optional jsvals that are not specified should be JSVAL_VOID, not JSVAL_NULL

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

Details

Attachments

(1 file)

Attached patch Patch, v1Splinter Review
PConnect makes optional jsvals JSVAL_NULL currently even though JSVAL_VOID is a better choice. Simple patch to fix.
Attachment #454780 - Flags: review?(jst)
Comment on attachment 454780 [details] [diff] [review]
Patch, v1

+            if(i < mArgc)
+                src = mArgv[i];
+            else if (type_tag == nsXPTType::T_JSVAL)

Remove the space between if and '(' to be consistent with the rest of this code...
Attachment #454780 - Flags: review?(jst) → review+
http://hg.mozilla.org/mozilla-central/rev/665b3c7b414a
Status: ASSIGNED → 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: