Index: fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp |
diff --git a/fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp b/fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp |
index ec74e66c1aa9cc53222e2635eebf921f806958df..080dda5ce3fdd003186dcfe73ad5896a7cc10797 100644 |
--- a/fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp |
+++ b/fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp |
@@ -32,11 +32,12 @@ class FXJSV8Embeddertest : public EmbedderTest { |
v8::Isolate::Scope isolate_scope(m_pIsolate); |
v8::HandleScope handle_scope(m_pIsolate); |
FXJS_PerIsolateData::SetUp(m_pIsolate); |
- FXJS_InitializeRuntime(m_pIsolate, nullptr, m_pPersistentContext); |
+ FXJS_InitializeRuntime(m_pIsolate, nullptr, &m_pPersistentContext, |
+ &m_StaticObjects); |
} |
void TearDown() override { |
- FXJS_ReleaseRuntime(m_pIsolate, m_pPersistentContext); |
+ FXJS_ReleaseRuntime(m_pIsolate, &m_pPersistentContext, &m_StaticObjects); |
m_pPersistentContext.Reset(); |
FXJS_Release(); |
EmbedderTest::TearDown(); |
@@ -51,6 +52,7 @@ class FXJSV8Embeddertest : public EmbedderTest { |
nonstd::unique_ptr<FXJS_ArrayBufferAllocator> m_pArrayBufferAllocator; |
v8::Isolate* m_pIsolate; |
v8::Global<v8::Context> m_pPersistentContext; |
+ std::vector<v8::Global<v8::Object>*> m_StaticObjects; |
}; |
TEST_F(FXJSV8Embeddertest, Getters) { |