From a29632de46585a52a0aa0fa26e496634daa10836 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 26 Oct 2011 06:14:42 +0000
Subject: [PATCH] Disable stack size checking in the background thread. This is
 reccomended by Mozilla and makes sense.

I would prefer to set it to a new stack limit though...
---
 src/sbbs3/js_global.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c
index e5f45d89b5..1e5cb5c30a 100644
--- a/src/sbbs3/js_global.c
+++ b/src/sbbs3/js_global.c
@@ -122,6 +122,7 @@ static void background_thread(void* arg)
 	SetThreadName("JS Background");
 	msgQueueAttach(bg->msg_queue);
 	JS_SetContextThread(bg->cx);
+	JS_SetThreadStackLimit(bg->cx, 0);
 	JS_BEGINREQUEST(bg->cx);
 	if(!JS_ExecuteScript(bg->cx, bg->obj, bg->script, &result)
 		&& JS_GetProperty(bg->cx, bg->obj, "exit_code", &exit_code))
-- 
GitLab