[webidl] Defining constructors on non-global objects?

Hi,

What is the appropriate way to define constructors on non-global objects in WebIDL? IOW, here’s what we’d like to spec in WebIDL:

new Sensor.AmbientLight();

I first thought [NamedConstructor] could be used but after revisiting the WebIDL spec it appears that is not the case.

Thanks,

-Anssi

Received on Friday, 5 September 2014 06:43:53 UTC