Skip to content

Commit

Permalink
Merge pull request #75 from voces/patch-1
Browse files Browse the repository at this point in the history
Fix setImmediate polyfill args
  • Loading branch information
ije committed Jun 23, 2021
2 parents 6cbf7da + 3e48514 commit 8a05613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a05613

Please sign in to comment.