aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index bdfdbba8..e5e8a755 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -25,6 +25,7 @@ var settings = JSON.parse(readline());
for (setting in settings) {
this[setting] = settings[setting];
}
+
var CONSTANTS = { 'QUANTUM_SIZE': QUANTUM_SIZE };
if (CORRECT_SIGNS >= 2) {
@@ -42,6 +43,10 @@ if (SAFE_HEAP >= 2) {
EXPORTED_FUNCTIONS = set(EXPORTED_FUNCTIONS);
+// Settings sanity checks
+
+assert(!(USE_TYPED_ARRAYS === 2 && QUANTUM_SIZE !== 4), 'For USE_TYPED_ARRAYS == 2, must have normal QUANTUM_SIZE of 4');
+
// Load compiler code
load('framework.js');