-Implement Object.create.

-Move toString for shell result into sandbox to resolve throw exception.
This commit is contained in:
Junyoung Cho 2016-12-19 20:44:04 +09:00
commit b2ea88b251
8 changed files with 104 additions and 2 deletions

View file

@ -45,6 +45,7 @@ Script::ScriptSandboxExecuteResult Script::sandboxExecute(Context* ctx)
return execute(ctx);
});
result.result = sandBoxResult.result;
result.msgStr = sandBoxResult.msgStr;
result.error.errorValue = sandBoxResult.error;
if (!sandBoxResult.error.isEmpty()) {
for (size_t i = 0; i < sandBoxResult.stackTraceData.size(); i++) {