From ba009a9949a007a03e2e966e285f463a5ff4b758 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Wed, 21 Feb 2024 21:51:12 +0100 Subject: Remove the setup function while we can --- js.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'js.go') 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) { -- cgit v1.2.3