summaryrefslogtreecommitdiff
path: root/fxjs/fxjs_v8_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/fxjs_v8_embeddertest.cpp')
-rw-r--r--fxjs/fxjs_v8_embeddertest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/fxjs/fxjs_v8_embeddertest.cpp b/fxjs/fxjs_v8_embeddertest.cpp
index 2da313192d..a877a36e56 100644
--- a/fxjs/fxjs_v8_embeddertest.cpp
+++ b/fxjs/fxjs_v8_embeddertest.cpp
@@ -45,12 +45,10 @@ TEST_F(FXJSV8EmbedderTest, MultipleEngines) {
v8::Isolate::Scope isolate_scope(isolate());
v8::HandleScope handle_scope(isolate());
- CFXJS_Engine engine1;
- engine1.SetIsolate(isolate());
+ CFXJS_Engine engine1(isolate());
engine1.InitializeEngine();
- CFXJS_Engine engine2;
- engine2.SetIsolate(isolate());
+ CFXJS_Engine engine2(isolate());
engine2.InitializeEngine();
v8::Context::Scope context_scope(GetV8Context());