summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
Diffstat (limited to 'js.go')
-rw-r--r--js.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/js.go b/js.go
index 1f0d600..db2c261 100644
--- a/js.go
+++ b/js.go
@@ -55,12 +55,6 @@ func (e Exports) Scrape(p ScrapeParams) (any, error) {
return fn(p)
}
-func (e Exports) Setup() {
- if fn, ok := e["setup"].(func(goja.FunctionCall) goja.Value); ok {
- fn(goja.FunctionCall{})
- }
-}
-
type Imports map[string]map[string]any
func Compile(src string, imports Imports) (Exports, error) {