Skip to content

Commit 1f89545

Browse files
committed
use stack size of 10MB for node.js to avoid crashes because of deep recursion (e.g. in testing/quick)
1 parent 04973f3 commit 1f89545

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

compiler/natives/testing/quick/quick.go

Lines changed: 0 additions & 5 deletions
This file was deleted.

tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ func printError(err error, options *gbuild.Options, browserErrors *bytes.Buffer)
653653
}
654654

655655
func runNode(script string, args []string, dir string) error {
656-
node := exec.Command("node", append([]string{script}, args...)...)
656+
node := exec.Command("node", append([]string{"--stack_size=10000", script}, args...)...)
657657
node.Dir = dir
658658
node.Stdin = os.Stdin
659659
node.Stdout = os.Stdout

0 commit comments

Comments
 (0)