From 3e485147bb84903fb836bd10ccdde001ea9a2803 Mon Sep 17 00:00:00 2001 From: Robert Coe Date: Sat, 12 Jun 2021 09:30:34 -0700 Subject: [PATCH] Fix setImmediate allows optional rest args --- server/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build.go b/server/build.go index 248272687..deca3c096 100644 --- a/server/build.go +++ b/server/build.go @@ -416,7 +416,7 @@ esbuild: fmt.Fprintf(jsHeader, `var __global$ = window;%s`, eol) } if bytes.Contains(outputContent, []byte("__setImmediate$")) { - fmt.Fprintf(jsHeader, `var __setImmediate$ = (cb, args) => setTimeout(cb, 0, ...args);%s`, eol) + fmt.Fprintf(jsHeader, `var __setImmediate$ = (cb, ...args) => setTimeout(cb, 0, ...args);%s`, eol) } if bytes.Contains(outputContent, []byte("__rResolve$")) { fmt.Fprintf(jsHeader, `var __rResolve$ = p => p;%s`, eol)