Fix array/object bug with new JS Interpreter for Port functions (read, write, and tryWrite)

This commit is contained in:
Daniel Xie 2018-08-06 10:25:22 -05:00
parent 96b26c582e
commit ea6cc3da55
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -199,7 +199,8 @@ function startNetscript1Script(workerScript) {
}); });
} }
int.setProperty(scope, name, int.createAsyncFunction(tempWrapper)); int.setProperty(scope, name, int.createAsyncFunction(tempWrapper));
} else if (name === "sprintf" || name === "vsprintf" || name === "scp") { } else if (name === "sprintf" || name === "vsprintf" || name === "scp" ||
name == "write" || name === "read" || name === "tryWrite") {
let tempWrapper = function() { let tempWrapper = function() {
let fnArgs = []; let fnArgs = [];