summaryrefslogtreecommitdiff
path: root/javascript/duktape/Location.bnd
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/duktape/Location.bnd')
-rw-r--r--javascript/duktape/Location.bnd12
1 files changed, 7 insertions, 5 deletions
diff --git a/javascript/duktape/Location.bnd b/javascript/duktape/Location.bnd
index 8c79cd460..fbb0e4a06 100644
--- a/javascript/duktape/Location.bnd
+++ b/javascript/duktape/Location.bnd
@@ -10,13 +10,15 @@
*/
class Location {
- private "nsurl *" url;
- prologue %{
+ private nsurl *url;
+};
+
+prologue Location()
+%{
#include "desktop/browser.h"
-%};
-}
+%}
-init Location("nsurl *" url)
+init Location(nsurl *url)
%{
priv->url = url;
nsurl_ref(url);