aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-26 13:20:05 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-26 13:20:05 -0700
commitc70758e3b49beb016a3d9db7b609c499d55de48b (patch)
tree6a53bd8ae82ecc8a56d885c93f2097c779027492 /src
parentd9e13a5a3ceeaa500e9c75e52547c8b67950c441 (diff)
parentac36f1a7237e1e804d7f07bed4226a3f5a3320d8 (diff)
Merge branch 'incoming'
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
-rw-r--r--src/settings.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 798a6f58..1c150bc9 100644
--- a/src/library.js
+++ b/src/library.js
@@ -359,7 +359,7 @@ LibraryManager.library = {
var success = true;
if (typeof XMLHttpRequest !== 'undefined') {
// Browser.
- assert('Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc');
+ throw 'Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc';
} else if (Module['read']) {
// Command-line.
try {
diff --git a/src/settings.js b/src/settings.js
index fe532bda..76dc25a1 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -53,9 +53,11 @@ var FAST_MEMORY = 2*1024*1024; // The amount of memory to initialize to 0. This
var MICRO_OPTS = 1; // Various micro-optimizations, like nativizing variables
var RELOOP = 0; // Recreate js native loops from llvm data
var USE_TYPED_ARRAYS = 2; // Use typed arrays for the heap. See https://github.com/kripken/emscripten/wiki/Code-Generation-Modes/
+ // 0 means no typed arrays are used.
// 1 has two heaps, IHEAP (int32) and FHEAP (double),
// and addresses there are a match for normal addresses.
- // 2 is a single heap, accessible through views as int8, int32, etc.
+ // 2 is a single heap, accessible through views as int8, int32, etc. This is
+ // the recommended mode both for performance and for compatibility.
var USE_FHEAP = 1; // Relevant in USE_TYPED_ARRAYS == 1. If this is disabled, only IHEAP will be used, and FHEAP
// not generated at all. This is useful if your code is 100% ints without floats or doubles
var DOUBLE_MODE = 1; // How to load and store 64-bit doubles. Without typed arrays or in typed array mode 1,