summaryrefslogtreecommitdiff
path: root/testing/js_embedder_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/js_embedder_test.h')
-rw-r--r--testing/js_embedder_test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/js_embedder_test.h b/testing/js_embedder_test.h
index b2bd5a87b1..f0beb1eb29 100644
--- a/testing/js_embedder_test.h
+++ b/testing/js_embedder_test.h
@@ -21,12 +21,12 @@ class JSEmbedderTest : public EmbedderTest {
v8::Isolate* isolate();
v8::Local<v8::Context> GetV8Context();
+ CFXJS_Engine* engine() { return m_Engine.get(); }
private:
std::unique_ptr<FXJS_ArrayBufferAllocator> m_pArrayBufferAllocator;
v8::Isolate* m_pIsolate;
- v8::Global<v8::Context> m_pPersistentContext;
- std::vector<v8::Global<v8::Object>*> m_StaticObjects;
+ std::unique_ptr<CFXJS_Engine> m_Engine;
};
#endif // TESTING_JS_EMBEDDER_TEST_H_