preparing for integration of testing

This commit is contained in:
Nathan Leniz
2015-01-20 20:35:25 -05:00
parent a4dc2f0206
commit 202805dc52
4 changed files with 18 additions and 8 deletions

View File

@@ -4,11 +4,14 @@ var run = function(code) {
var result = {
input: code,
output: null,
error: null
error: null,
type: null
};
try {
result.output = stringify(runHidden(code));
var codeExec = runHidden(code);
result.type = typeof codeExec;
result.output = stringify(codeExec);
} catch(e) {
result.error = e.message;
}