You could try
let view = new WebKit.WebView({});
I'm not sure about the error though, WebView should not really be a 'boxed'
type..
If you can get the seed Browser working then your GIR/typelibs should be fine.
http://git.gnome.org/browse/seed-examples/tree/browser
Regards
Alan
--- On 18/Sep/2010, Jonh Wendell wrote:
> Hi, folks.
>
> I'm trying to run the example found on
> http://github.com/jdahlin/gjs/blob/cairo/examples/webkit.js but gjs
> gives me an error:
>
> JS ERROR: !!! Exception was: Error: Unable to construct boxed type
> WebView since it has no zero-args <constructor>, can only wrap an
> existing one
> JS ERROR: !!! lineNumber = '0'
> JS ERROR: !!! fileName = 'gjs_throw'
>
> It doesn't even run the script. It just aborts.
>
> I'm running gjs and webkit from master.
>
> Does someone have any hint?
> --
> Jonh Wendell
> http://www.bani.com.br
>
> _______________________________________________
> javascript-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/javascript-list
_______________________________________________
javascript-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/javascript-list