Nadav Vinik
2012-Apr-16 03:33 UTC
[LightDM] problem to create a greater in js?: Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one
Hello I try to create greeter in JS and it complain that the constructor of LightDM.Greeter need args while in the documentation is not. let greeter = new LightDM.Greeter(); JS ERROR: !!! Exception was: Error: Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one JS ERROR: !!! lineNumber = '0' JS ERROR: !!! fileName = '"gjs_throw"' JS ERROR: !!! stack = '"("Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one")@gjs_throw:0 @./main.js:7 "' JS ERROR: !!! message = '"Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one"' Error: Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one Documentation: http://people.ubuntu.com/~robert-ancell/lightdm/reference/lightdm-gobject-1-Greeter-Interface.html Thanks Nadav -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20120416/0d259ec1/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: main.js Type: application/x-javascript Size: 198 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20120416/0d259ec1/attachment.bin>
Robert Ancell
2012-Apr-30 03:53 UTC
[LightDM] problem to create a greater in js?: Unable to construct boxed type Greeter since it has no zero-args <constructor>, can only wrap an existing one
Nadav filed a bug for this, https://bugs.launchpad.net/bugs/990490 Thanks! --Robert On 16 April 2012 15:33, Nadav Vinik <nadavvin at gmail.com> wrote:> Hello > > I try to create greeter in JS and it complain that the constructor of > LightDM.Greeter need args while in the documentation is not. > > let greeter = new LightDM.Greeter(); > > ??? JS ERROR: !!!?? Exception was: Error: Unable to construct boxed type > Greeter since it has no zero-args <constructor>, can only wrap an existing > one > ??? JS ERROR: !!!???? lineNumber = '0' > ??? JS ERROR: !!!???? fileName = '"gjs_throw"' > ??? JS ERROR: !!!???? stack = '"("Unable to construct boxed type Greeter > since it has no zero-args <constructor>, can only wrap an existing > one")@gjs_throw:0 > @./main.js:7 > "' > ??? JS ERROR: !!!???? message = '"Unable to construct boxed type Greeter > since it has no zero-args <constructor>, can only wrap an existing one"' > Error: Unable to construct boxed type Greeter since it has no zero-args > <constructor>, can only wrap an existing one > > > Documentation: > http://people.ubuntu.com/~robert-ancell/lightdm/reference/lightdm-gobject-1-Greeter-Interface.html > > Thanks > Nadav > > > _______________________________________________ > LightDM mailing list > LightDM at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/lightdm >