summaryrefslogtreecommitdiff
path: root/fxjs/cjs_v8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_v8.cpp')
-rw-r--r--fxjs/cjs_v8.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/fxjs/cjs_v8.cpp b/fxjs/cjs_v8.cpp
index 8f77ec6a88..b4f7fb1ed2 100644
--- a/fxjs/cjs_v8.cpp
+++ b/fxjs/cjs_v8.cpp
@@ -13,9 +13,7 @@
CJS_V8::CJS_V8(v8::Isolate* isolate) : m_isolate(isolate) {}
-CJS_V8::~CJS_V8() {
- m_V8PersistentContext.Reset();
-}
+CJS_V8::~CJS_V8() = default;
v8::Local<v8::Value> CJS_V8::GetObjectProperty(
v8::Local<v8::Object> pObj,
@@ -88,14 +86,6 @@ unsigned CJS_V8::GetArrayLength(v8::Local<v8::Array> pArray) {
return pArray->Length();
}
-v8::Local<v8::Context> CJS_V8::NewLocalContext() {
- return v8::Local<v8::Context>::New(m_isolate, m_V8PersistentContext);
-}
-
-v8::Local<v8::Context> CJS_V8::GetPersistentContext() {
- return m_V8PersistentContext.Get(m_isolate);
-}
-
v8::Local<v8::Number> CJS_V8::NewNumber(int number) {
return v8::Int32::New(m_isolate, number);
}