aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-11 13:42:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-11 13:48:09 -0700
commite44b9d6a9ea7fec734624ad21acd97bfc13aaaf8 (patch)
tree5ec1c3715eae0c04d6d202c3baa9fc37085fd5e4 /src/settings.js
parent05dbe604903912c7758a1737c8eb3cd928d75256 (diff)
DETERMINISTIC option
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index a8761d90..26883051 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -478,6 +478,9 @@ var HEADLESS = 0; // If 1, will include shim code that tries to 'fake' a browser
// very partial - it is hard to fake a whole browser! - so
// keep your expectations low for this to work.
+var DETERMINISTIC = 0; // If 1, we force Date.now(), Math.random, etc. to return deterministic
+ // results. Good for comparing builds for debugging purposes (and nothing else)
+
var BENCHMARK = 0; // If 1, will just time how long main() takes to execute, and not
// print out anything at all whatsoever. This is useful for benchmarking.