summaryrefslogtreecommitdiff
path: root/testing/unit_test_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/unit_test_main.cpp')
-rw-r--r--testing/unit_test_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/unit_test_main.cpp b/testing/unit_test_main.cpp
index d0c4dfda9f..88855c8e7f 100644
--- a/testing/unit_test_main.cpp
+++ b/testing/unit_test_main.cpp
@@ -64,9 +64,9 @@ int main(int argc, char** argv) {
#ifdef PDF_ENABLE_V8
std::unique_ptr<v8::Platform> platform;
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
static v8::StartupData* natives = new v8::StartupData;
static v8::StartupData* snapshot = new v8::StartupData;
-#ifdef V8_USE_EXTERNAL_STARTUP_DATA
platform = InitializeV8ForPDFiumWithStartupData(argv[0], std::string(),
natives, snapshot);
#else // V8_USE_EXTERNAL_STARTUP_DATA