Closed Bug 1551124 Opened 5 years ago Closed 5 years ago

Support optional Array arguments in xpconnect

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

Right now we end up trying to convert undefined to Array and throw.

The semantics are that you get an empty array if the argument is not supplied,
and if [optional_argc] is used it's set accordingly so you can tell whether you
were passed explicit [] or not passed anything.

Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2bf0e06cb75
Add support for optional Array arguments in xpconnect.  r=nika
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: