aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-13 11:27:22 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-13 11:27:22 -0800
commit8263e2377f6cbbb88523aefeb86123e1a6887f1a (patch)
tree044cacf306add04577df3c490649fb94ac4390c7 /src/settings.js
parenteb6144f24f3379b6de5e59a3811dcaa1514c2b00 (diff)
headless option
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 5d4299a4..58635950 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -277,6 +277,14 @@ var SMALL_XHR_CHUNKS = 0; // Use small chunk size for binary synchronous XHR's i
// Used for testing.
// See test_chunked_synchronous_xhr in runner.py and library.js.
+var HEADLESS = 0; // If 1, will include shim code that tries to 'fake' a browser
+ // environment, in order to let you run a browser program (say,
+ // using SDL) in the shell. Obviously nothing is rendered, but
+ // this can be useful for benchmarking and debugging if actual
+ // rendering is not the issue. Note that the shim code is
+ // very partial - it is hard to fake a whole browser! - so
+ // keep your expectations low for this to work.
+
var NECESSARY_BLOCKADDRS = []; // List of (function, block) for all block addresses that are taken.
// Compiler debugging options