1. initialize message variable of ErrorObject correctly

2. merge DeclareFunctionDeclaration, DeclareFunctionDeclarationsInGlobal into DeclareFunctionDeclarations
3. implement EnvironmentRecord::initializeBinding for initialize function decl.

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-03-21 21:49:24 +09:00
commit f51edbe5d9
15 changed files with 148 additions and 103 deletions

View file

@ -85,7 +85,7 @@ Script::ScriptSandboxExecuteResult Script::sandboxExecute(Context* ctx)
ExecutionState stateForInit(ctx);
auto sandBoxResult = sb.run([&]() -> Value {
return execute(stateForInit);
return execute(stateForInit, false, false, true);
});
result.result = sandBoxResult.result;
result.msgStr = sandBoxResult.msgStr;