summaryrefslogtreecommitdiff
path: root/fxjs/cfxjs_engine_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjs_engine_unittest.cpp')
-rw-r--r--fxjs/cfxjs_engine_unittest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cfxjs_engine_unittest.cpp b/fxjs/cfxjs_engine_unittest.cpp
index 5b93072935..64cd3a3e1e 100644
--- a/fxjs/cfxjs_engine_unittest.cpp
+++ b/fxjs/cfxjs_engine_unittest.cpp
@@ -43,7 +43,7 @@ TEST_F(FXJSEngineUnitTest, GC) {
engine()->DefineObj("perm", FXJSOBJTYPE_DYNAMIC,
[](CFXJS_Engine* pEngine, v8::Local<v8::Object> obj) {
pEngine->SetObjectPrivate(
- obj, pdfium::MakeUnique<CJS_Object>(obj));
+ obj, pdfium::MakeUnique<CJS_Object>(obj, nullptr));
perm_created = true;
},
[](v8::Local<v8::Object> obj) {
@@ -55,7 +55,7 @@ TEST_F(FXJSEngineUnitTest, GC) {
engine()->DefineObj("temp", FXJSOBJTYPE_DYNAMIC,
[](CFXJS_Engine* pEngine, v8::Local<v8::Object> obj) {
pEngine->SetObjectPrivate(
- obj, pdfium::MakeUnique<CJS_Object>(obj));
+ obj, pdfium::MakeUnique<CJS_Object>(obj, nullptr));
temp_created = true;
},
[](v8::Local<v8::Object> obj) {