preparing for integration of testing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user