Commit 56fb312d authored by Christian's avatar Christian Committed by chriseth

Correctly use optimizer flag.

parent 4ca23c85
......@@ -116,7 +116,7 @@ editor.getSession().setMode("ace/mode/javascript");
editor.getSession().setTabSize(4);
editor.getSession().setUseSoftTabs(true);
var compileString = Module.cwrap("compileString", "string", ["string"]);
var compileString = Module.cwrap("compileString", "string", ["string", "number"]);
var previousInput = '';
var outputArea = document.querySelector('#output');
var onChange = function() {
......@@ -126,7 +126,7 @@ var onChange = function() {
return;
previousInput = input;
try {
outputArea.innerHTML = compileString(input, optimize);
outputArea.innerHTML = compileString(input, optimize ? 1 : 0);
} catch (exception) {
outputArea.innerHTML = "Uncaught JavaScript Exception:\n" + exception;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment