GIR interface is not following the documentation of the constructor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Fix Released
|
High
|
Unassigned | ||
lightdm (Ubuntu) |
Fix Released
|
High
|
salomon peralta lopez | ||
Oneiric |
Fix Released
|
High
|
Unassigned |
Bug Description
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
Based on documentation:
http://
original post in mailing list:
http://
Changed in lightdm: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: verification-done |
Changed in lightdm (Ubuntu): | |
assignee: | nobody → salomon peralta lopez (peraltasalomon) |
Changed in lightdm: | |
status: | Triaged → Fix Released |
What Javascript engine are you running through? Can you give a step by step way to reproduce this?