aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-01-29 13:23:32 +0100
committerLars Knoll <lars.knoll@digia.com>2013-01-29 20:16:56 +0100
commit87b61295d3cfc629bb01b516ba6d86b313424d9d (patch)
tree43d5cf183d151cae2aee22ce7eba4c9cb9a402b1 /tests
parentff99f697be0f2caa7675d79aee8627b01f4b5f4a (diff)
Allocate execution context and local variables in one chunk
This avoids a few mallocs and in addition memory leaks where the local variables or arguments array wasn't destroyed before. crypto.js seems to run without a mem leak now :) Change-Id: Icca74c5dba764fadabd7a77f233bdf5883046c86 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fact.2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fact.2.js b/tests/fact.2.js
index d8f750b5a1..c0f087e4c9 100644
--- a/tests/fact.2.js
+++ b/tests/fact.2.js
@@ -3,6 +3,6 @@ function fact(n) {
return n > 1 ? n * fact(n - 1) : 1
}
-for (var i = 0; i < 1000000; i = i + 1)
+for (var i = 0; i < 10000; i = i + 1)
fact(12)