summaryrefslogtreecommitdiff
path: root/testing/js_embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/js_embedder_test.cpp')
-rw-r--r--testing/js_embedder_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp
index 064a961049..e9eb70d1ec 100644
--- a/testing/js_embedder_test.cpp
+++ b/testing/js_embedder_test.cpp
@@ -3,11 +3,12 @@
// found in the LICENSE file.
#include "testing/js_embedder_test.h"
+
#include "third_party/base/ptr_util.h"
JSEmbedderTest::JSEmbedderTest()
- : m_pArrayBufferAllocator(new FXJS_ArrayBufferAllocator),
- m_pIsolate(nullptr) {}
+ : m_pArrayBufferAllocator(pdfium::MakeUnique<FXJS_ArrayBufferAllocator>()) {
+}
JSEmbedderTest::~JSEmbedderTest() {}