Closed Bug 742149 Opened 12 years ago Closed 12 years ago

WebIDL parser needs to support IDL array return values

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: khuey)

References

(Blocks 1 open bug)

Details

WebGL currently has:

    WebGLShader[]? getAttachedShaders(WebGLProgram? program); 

which throws like so:

  File "dom/bindings/parser/WebIDL.py", line 2862, in finish
    production.finish(self.globalScope())
  File "dom/bindings/parser/WebIDL.py", line 509, in finish
    member.finish(scope)
  File "dom/bindings/parser/WebIDL.py", line 1653, in finish
    assert not isinstance(type.name, IDLUnresolvedIdentifier)

where type.name stringifies as "<unresolved scope>::WebGLShader".

I still think they should use a sequence here, and maybe I'll implement it that way, but we might need this somewhere else too.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.