summaryrefslogtreecommitdiff
path: root/javascript/duktape/Window.bnd
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-09 16:20:09 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-09 16:20:09 +0100
commit3d7de6cf8d67bd7761a907cb171d8a4af8088a08 (patch)
tree3b812bdf618df02bd4ef0bfde19ba9f9085a2ed3 /javascript/duktape/Window.bnd
parentda77e9c91c555c66fc669bd9ac7fba60c2b06e8c (diff)
downloadnetsurf-3d7de6cf8d67bd7761a907cb171d8a4af8088a08.tar.gz
netsurf-3d7de6cf8d67bd7761a907cb171d8a4af8088a08.tar.bz2
Fix window.window
Diffstat (limited to 'javascript/duktape/Window.bnd')
-rw-r--r--javascript/duktape/Window.bnd7
1 files changed, 3 insertions, 4 deletions
diff --git a/javascript/duktape/Window.bnd b/javascript/duktape/Window.bnd
index 2223ae88d..95b55b2e2 100644
--- a/javascript/duktape/Window.bnd
+++ b/javascript/duktape/Window.bnd
@@ -44,9 +44,8 @@ getter Window::document()
return 1;
%}
-
-getter Window::document()
+getter Window::window()
%{
- duk_dup(ctx, 0);
+ duk_push_this(ctx);
return 1;
-%}
+%} \ No newline at end of file