Closed Bug 1829311 Opened 3 years ago Closed 3 years ago

Build error occurs when a callback has multiple union types as arguments.

Categories

(Core :: DOM: Bindings (WebIDL), defect)

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: edgar, Assigned: edgar)

Details

Attachments

(1 external file)

If there is callback defined as

callback TestUnionArguments = undefine((DOMString or long) arg1, (DOMString or long) arg2);

We got a build error like

 0:11.04 ../TestCodeGenBinding.cpp:4614:27: error: use of undeclared identifier 'callbackObj'
 0:11.04     if (!arg2.ToJSVal(cx, callbackObj, argv[1])) {
Assignee: nobody → echen
Status: NEW → ASSIGNED
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e147c642adb Fix build error when a callback has multiple union types as arguments; r=peterv
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: