Support optional Array arguments in xpconnect

RESOLVED FIXED in Firefox 68

Status

()

defect
RESOLVED FIXED
Last month
Last month

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Tracking

Trunk
mozilla68
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

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.

Comment 2

Last month
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2bf0e06cb75
Add support for optional Array arguments in xpconnect.  r=nika

Comment 3

Last month
bugherder
Status: NEW → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.