@@ -5,6 +5,7 @@ package gojahost
5
5
import (
6
6
g "github.com/dop251/goja"
7
7
html "github.com/gost-dom/browser/html"
8
+ log "github.com/gost-dom/browser/internal/log"
8
9
)
9
10
10
11
func init () {
@@ -36,14 +37,17 @@ func (w locationWrapper) initializePrototype(prototype *g.Object, vm *g.Runtime)
36
37
}
37
38
38
39
func (w locationWrapper ) assign (c g.FunctionCall ) g.Value {
40
+ log .Debug (w .logger (c ), "V8 Function call: Location.assign" )
39
41
panic ("Location.assign: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
40
42
}
41
43
42
44
func (w locationWrapper ) replace (c g.FunctionCall ) g.Value {
45
+ log .Debug (w .logger (c ), "V8 Function call: Location.replace" )
43
46
panic ("Location.replace: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
44
47
}
45
48
46
49
func (w locationWrapper ) reload (c g.FunctionCall ) g.Value {
50
+ log .Debug (w .logger (c ), "V8 Function call: Location.reload" )
47
51
panic ("Location.reload: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
48
52
}
49
53
@@ -54,6 +58,7 @@ func (w locationWrapper) href(c g.FunctionCall) g.Value {
54
58
}
55
59
56
60
func (w locationWrapper ) setHref (c g.FunctionCall ) g.Value {
61
+ log .Debug (w .logger (c ), "V8 Function call: Location.setHref" )
57
62
panic ("Location.setHref: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
58
63
}
59
64
@@ -70,6 +75,7 @@ func (w locationWrapper) protocol(c g.FunctionCall) g.Value {
70
75
}
71
76
72
77
func (w locationWrapper ) setProtocol (c g.FunctionCall ) g.Value {
78
+ log .Debug (w .logger (c ), "V8 Function call: Location.setProtocol" )
73
79
panic ("Location.setProtocol: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
74
80
}
75
81
@@ -80,6 +86,7 @@ func (w locationWrapper) host(c g.FunctionCall) g.Value {
80
86
}
81
87
82
88
func (w locationWrapper ) setHost (c g.FunctionCall ) g.Value {
89
+ log .Debug (w .logger (c ), "V8 Function call: Location.setHost" )
83
90
panic ("Location.setHost: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
84
91
}
85
92
@@ -90,6 +97,7 @@ func (w locationWrapper) hostname(c g.FunctionCall) g.Value {
90
97
}
91
98
92
99
func (w locationWrapper ) setHostname (c g.FunctionCall ) g.Value {
100
+ log .Debug (w .logger (c ), "V8 Function call: Location.setHostname" )
93
101
panic ("Location.setHostname: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
94
102
}
95
103
@@ -100,6 +108,7 @@ func (w locationWrapper) port(c g.FunctionCall) g.Value {
100
108
}
101
109
102
110
func (w locationWrapper ) setPort (c g.FunctionCall ) g.Value {
111
+ log .Debug (w .logger (c ), "V8 Function call: Location.setPort" )
103
112
panic ("Location.setPort: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
104
113
}
105
114
@@ -110,6 +119,7 @@ func (w locationWrapper) pathname(c g.FunctionCall) g.Value {
110
119
}
111
120
112
121
func (w locationWrapper ) setPathname (c g.FunctionCall ) g.Value {
122
+ log .Debug (w .logger (c ), "V8 Function call: Location.setPathname" )
113
123
panic ("Location.setPathname: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
114
124
}
115
125
@@ -120,6 +130,7 @@ func (w locationWrapper) search(c g.FunctionCall) g.Value {
120
130
}
121
131
122
132
func (w locationWrapper ) setSearch (c g.FunctionCall ) g.Value {
133
+ log .Debug (w .logger (c ), "V8 Function call: Location.setSearch" )
123
134
panic ("Location.setSearch: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
124
135
}
125
136
@@ -130,9 +141,11 @@ func (w locationWrapper) hash(c g.FunctionCall) g.Value {
130
141
}
131
142
132
143
func (w locationWrapper ) setHash (c g.FunctionCall ) g.Value {
144
+ log .Debug (w .logger (c ), "V8 Function call: Location.setHash" )
133
145
panic ("Location.setHash: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
134
146
}
135
147
136
148
func (w locationWrapper ) ancestorOrigins (c g.FunctionCall ) g.Value {
149
+ log .Debug (w .logger (c ), "V8 Function call: Location.ancestorOrigins" )
137
150
panic ("Location.ancestorOrigins: Not implemented. Create an issue: https://github.com/gost-dom/browser/issues" )
138
151
}
0 commit comments