Index: testing/js_embedder_test.cpp |
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp |
index f7aa7e38f741eb6813e371819ce6c63fecefe018..125d2bff3ec2c47dbf7f8d8af0040438d2132215 100644 |
--- a/testing/js_embedder_test.cpp |
+++ b/testing/js_embedder_test.cpp |
@@ -21,8 +21,7 @@ void JSEmbedderTest::SetUp() { |
v8::Isolate::Scope isolate_scope(m_pIsolate); |
v8::HandleScope handle_scope(m_pIsolate); |
FXJS_PerIsolateData::SetUp(m_pIsolate); |
- m_Engine.reset(new CFXJS_Engine); |
- m_Engine->SetIsolate(m_pIsolate); |
+ m_Engine.reset(new CFXJS_Engine(m_pIsolate)); |
m_Engine->InitializeEngine(); |
} |