mirror of https://gitee.com/bigwinds/arangodb
do not execute scripts
This commit is contained in:
parent
3ef80ee03d
commit
8f5e50f750
|
@ -458,11 +458,13 @@ static bool LoadJavaScriptFile (v8::Handle<v8::Context> context,
|
|||
return false;
|
||||
}
|
||||
|
||||
// execute script
|
||||
v8::Handle<v8::Value> result = script->Run();
|
||||
if (execute) {
|
||||
// execute script
|
||||
v8::Handle<v8::Value> result = script->Run();
|
||||
|
||||
if (result.IsEmpty()) {
|
||||
return false;
|
||||
if (result.IsEmpty()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
LOG_TRACE("loaded java script file: '%s'", filename);
|
||||
|
|
Loading…
Reference in New Issue