diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-10-31 14:31:18 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2012-10-31 14:31:18 +0000 |
commit | 5496a604310b65db0513c063ed171f0168baee28 (patch) | |
tree | 7487c0223f08b7387d4dbf0e60237c2d3dcd5d43 /javascript/jsapi/bindings/window.bnd | |
parent | ede48d60748101e9795050955d934ea6e329d4c5 (diff) | |
download | netsurf-5496a604310b65db0513c063ed171f0168baee28.tar.gz netsurf-5496a604310b65db0513c063ed171f0168baee28.tar.bz2 |
console interface from IDL
Diffstat (limited to 'javascript/jsapi/bindings/window.bnd')
-rw-r--r-- | javascript/jsapi/bindings/window.bnd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/javascript/jsapi/bindings/window.bnd b/javascript/jsapi/bindings/window.bnd index 9d4a844a1..ba2db52b2 100644 --- a/javascript/jsapi/bindings/window.bnd +++ b/javascript/jsapi/bindings/window.bnd @@ -84,6 +84,12 @@ api init %{ if (user_proto == NULL) { return NULL; } + + user_proto = jsapi_InitClass_Console(cx, prototype); + if (user_proto == NULL) { + return NULL; + } + %} api new %{ @@ -112,7 +118,7 @@ api new %{ /** @todo forms, history, location */ - private->console = jsapi_new_Console(cx, newobject); + private->console = jsapi_new_Console(cx, NULL, newobject); if (private->console == NULL) { free(private); return NULL; |