Merge pull request #425 from danielyxie/nsport_array_bug

Fix array/object bug with new JS Interpreter for Port functions (read…
This commit is contained in:
danielyxie 2018-08-06 11:28:46 -04:00 committed by GitHub
commit e9632aa78a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = [];