46 v8::Isolate::Scope isolate_scope(isolate());
47 v8::HandleScope handle_scope(isolate());
53 v8::Local<v8::Object> proxy) {
54 pEngine->SetObjectPrivate(obj,
58 [](v8::Local<v8::Object> obj) {
60 CFXJS_Engine::SetObjectPrivate(obj,
nullptr);
67 v8::Local<v8::Object> proxy) {
68 pEngine->SetObjectPrivate(obj,
72 [](v8::Local<v8::Object> obj) {
74 CFXJS_Engine::SetObjectPrivate(obj,
nullptr);
77 engine()->InitializeEngine();
79 v8::Context::Scope context_scope(engine()->GetV8Context());
80 v8::Local<v8::Object> perm =
81 engine()->NewFXJSBoundObject(1, FXJSOBJTYPE_DYNAMIC);
82 EXPECT_FALSE(perm.IsEmpty());
87 v8::HandleScope inner_handle_scope(isolate());
88 v8::Local<v8::Object> temp =
89 engine()->NewFXJSBoundObject(2, FXJSOBJTYPE_DYNAMIC);
90 EXPECT_FALSE(temp.IsEmpty());
95 absl::optional<IJS_Runtime::JS_Error> err = engine()->Execute(L"gc();");
104 engine()->ReleaseEngine();