From 0dd30121a5242ba36ba126e1bef1343854f0d8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= Date: Tue, 18 May 2021 10:26:29 +0200 Subject: [PATCH] Fix error typo in HandleSummary() --- js/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/runner.go b/js/runner.go index 89333c6d180..546dd8ab282 100644 --- a/js/runner.go +++ b/js/runner.go @@ -332,7 +332,7 @@ func (r *Runner) HandleSummary(ctx context.Context, summary *lib.Summary) (map[s if _, ok := goja.AssertFunction(fn); ok { handleSummaryFn = fn } else if fn != nil { - return nil, fmt.Errorf("exported identfier %s must be a function", consts.HandleSummaryFn) + return nil, fmt.Errorf("exported identifier %s must be a function", consts.HandleSummaryFn) } } ctx = common.WithRuntime(ctx, vu.Runtime)