OpenBirch WASM version bump
This commit is contained in:
parent
1718b16c4d
commit
44e4559794
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -7,10 +7,10 @@ function str2C(s) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
window.runEval = function (inputText) {
|
||||
window.runEval = function (inputText, stopAssignments = false) {
|
||||
console.log("input: " + inputText);
|
||||
var inputPtr = str2C(inputText);
|
||||
var resultPointer = Module2._eval(inputPtr);
|
||||
var resultPointer = Module._eval(inputPtr, stopAssignments);
|
||||
|
||||
var resultString = "";
|
||||
|
||||
|
@ -19,7 +19,7 @@ window.runEval = function (inputText) {
|
|||
if (resultPointer) {
|
||||
var i = 0;
|
||||
while (true) {
|
||||
var charCode = Module2.getValue(resultPointer + i, 'i8');
|
||||
var charCode = Module.getValue(resultPointer + i, 'i8');
|
||||
if (charCode === 0) break;
|
||||
resultString += String.fromCharCode(charCode);
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue