aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-03-29 19:39:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-03-29 19:39:33 -0700
commit3b303a0b7f848f1b2a95becac4fc2e407ad42220 (patch)
treec0b8aecdc1dbbb97f96b02bc40d16b3add49f74c
parentcf102d3e3b4a6289172a74cd187ccede2cb82261 (diff)
simplify TOTAL_STACK to not confuse closure compiler
-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);
}