summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2024-02-21 21:51:12 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2024-02-21 21:51:12 +0100
commitba009a9949a007a03e2e966e285f463a5ff4b758 (patch)
tree69b3d0df3fa83814cdbc2043a0e40aabee7abfe6 /js.go
parente2e0ed8fa7d26a23f77b378907b3f902be9e028e (diff)
Remove the setup function while we can
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) {