aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/preamble.js b/src/preamble.js
index a2a66bd6..1755767a 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -276,11 +276,8 @@ function __initializeRuntime__() {
Module['FHEAP'] = FHEAP;
STACK_ROOT = STACKTOP = alignMemoryPage(10);
- var totalStack = 1024*1024; // XXX: Changing this value can lead to bad perf on v8!
- try {
- totalStack = TOTAL_STACK;
- } catch(e){}
- STACK_MAX = STACK_ROOT + totalStack;
+ var TOTAL_STACK = 1024*1024; // XXX: Changing this value can lead to bad perf on v8!
+ STACK_MAX = STACK_ROOT + TOTAL_STACK;
STATICTOP = alignMemoryPage(STACK_MAX);
}