File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -567,6 +567,9 @@ Handle<Value> BGJSContext::require(const Arguments& args) {
567
567
} else {
568
568
LOGE (" Cannot find file %s" , *basename);
569
569
log (LOG_ERROR, args);
570
+ context->DetachGlobal ();
571
+ context->Exit ();
572
+ context.Dispose ();
570
573
return v8::Undefined ();
571
574
}
572
575
@@ -777,7 +780,9 @@ Handle<Value> BGJSContext::js_global_requestAnimationFrame(
777
780
LOGI (" requestAnimationFrame: Not a function" );
778
781
}
779
782
} else {
780
- LOGI (" requestAnimationFrame: Wrong number or type of parameters" );
783
+ return v8::ThrowException (
784
+ v8::Exception::ReferenceError (
785
+ v8::String::New (" requestAnimationFrame: Wrong number or type of parameters" )));
781
786
return scope.Close (Integer::New (-1 ));
782
787
// return v8::ThrowException(v8::Exception::ReferenceError(v8::String::New("Wrong number of parameters")));
783
788
}
You can’t perform that action at this time.
0 commit comments