1
0
Fork 0

do not execute scripts

This commit is contained in:
Jan Steemann 2012-12-21 23:55:03 +01:00
parent 3ef80ee03d
commit 8f5e50f750
1 changed files with 6 additions and 4 deletions

View File

@ -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);