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)