Open Bug 1886725 Opened 2 years ago Updated 2 years ago

`./mach webidl-example TestInterface` is broken

Categories

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

task

Tracking

()

People

(Reporter: mbrodesser, Unassigned)

References

(Blocks 1 open bug)

Details

$ ./mach webidl-example TestInterface
Error running mach:

    mach webidl-example TestInterface

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file webidl-example`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

AssertionError

  File "/home/mirko/work/code/gecko/dom/bindings/mach_commands.py", line 31, in webidl_example
    manager.generate_example_files(i)
  File "/home/mirko/work/code/gecko/dom/bindings/mozwebidlcodegen/__init__.py", line 355, in generate_example_files
    root = CGExampleRoot(self.config, interface)
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 20230, in __init__
    self.root = CGWrapper(CGExampleClass(descriptor), pre="\n", post="\n")
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 20061, in __init__
    CGBindingImplClass.__init__(
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19854, in __init__
    appendMethod(m)
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19840, in appendMethod
    self.methodDecls.append(cgMethod(descriptor, m, sigs[-1], isConstructor))
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19738, in __init__
    CGNativeMember.__init__(
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19286, in __init__
    self.getArgs(signature[0], signature[1]),
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19474, in getArgs
    elementDecl = self.getReturnType(returnType.inner, True)
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19304, in getReturnType
    return self.getRetvalInfo(type, isMember)[0]
  File "/home/mirko/work/code/gecko/dom/bindings/Codegen.py", line 19419, in getRetvalInfo
    assert not isMember
Type: defect → task
You need to log in before you can comment on or make changes to this bug.