Parse args sent through evaluation function

Previously they'd go in still stringified so we didn't get a chance to
convert buffer objects back to buffers, for example, making things like
`fs.write` write `[object Object]` to files.
This commit is contained in:
Asher
2019-02-21 14:09:07 -06:00
parent fe107802e3
commit 7edf797efc
4 changed files with 20 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import { logger, field } from "@coder/logger";
import { ReadWriteConnection, InitData, OperatingSystem, SharedProcessData } from "../common/connection";
import { Disposer, stringify, parse } from "../common/util";
import { NewEvalMessage, ServerMessage, EvalDoneMessage, EvalFailedMessage, ClientMessage, WorkingInitMessage, EvalEventMessage } from "../proto";
import { ActiveEval } from "./command";
import { ActiveEval } from "./evaluate";
/**
* Client accepts an arbitrary connection intended to communicate with the Server.