summaryrefslogtreecommitdiff
path: root/testing/js_embedder_test.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-02 17:37:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-02 17:37:37 +0000
commit1258f7f21725c703269581e0241fbad86d89209c (patch)
tree4b065d6c432ee9e23995cab693a9eab73fbddfa1 /testing/js_embedder_test.cpp
parent9cbd2dd8ff0812aae57a99d6a7dc285cc8b9e262 (diff)
downloadpdfium-1258f7f21725c703269581e0241fbad86d89209c.tar.xz
Remove V8 context from CJS_V8
Makes CFXJS_Engine and CFXJSE_Engine consistent with each other in that both have a V8 context to themselves, and not one inheritted from the CJS_V8 (which is now more per-isolate than per-context). Consolidate NewLocalContext() and GetPersistentContext(), which both did the exact same thing under the covers once inside v8 land. Rename a few things to make it simpler. Change-Id: I68905db9ad44253063da235fcb276a75627a2dbc Reviewed-on: https://pdfium-review.googlesource.com/25170 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/js_embedder_test.cpp')
-rw-r--r--testing/js_embedder_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/js_embedder_test.cpp b/testing/js_embedder_test.cpp
index e9eb70d1ec..8e95aee142 100644
--- a/testing/js_embedder_test.cpp
+++ b/testing/js_embedder_test.cpp
@@ -40,5 +40,5 @@ v8::Isolate* JSEmbedderTest::isolate() {
}
v8::Local<v8::Context> JSEmbedderTest::GetV8Context() {
- return m_Engine->GetPersistentContext();
+ return m_Engine->GetV8Context();
}