summaryrefslogtreecommitdiff
path: root/fxjse/runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjse/runtime.cpp')
-rw-r--r--fxjse/runtime.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/fxjse/runtime.cpp b/fxjse/runtime.cpp
index bf171eef7e..29814bdc7e 100644
--- a/fxjse/runtime.cpp
+++ b/fxjse/runtime.cpp
@@ -69,6 +69,11 @@ void FXJSE_Runtime_Release(v8::Isolate* pIsolate) {
FXJSE_Runtime_DisposeCallback);
}
+CFXJSE_RuntimeData::CFXJSE_RuntimeData(v8::Isolate* pIsolate)
+ : m_pIsolate(pIsolate) {}
+
+CFXJSE_RuntimeData::~CFXJSE_RuntimeData() {}
+
CFXJSE_RuntimeData* CFXJSE_RuntimeData::Create(v8::Isolate* pIsolate) {
CFXJSE_RuntimeData* pRuntimeData = new CFXJSE_RuntimeData(pIsolate);
CFXJSE_ScopeUtil_IsolateHandle scope(pIsolate);
@@ -92,6 +97,10 @@ CFXJSE_RuntimeData* CFXJSE_RuntimeData::Get(v8::Isolate* pIsolate) {
CFXJSE_IsolateTracker* CFXJSE_IsolateTracker::g_pInstance = nullptr;
+CFXJSE_IsolateTracker::CFXJSE_IsolateTracker() {}
+
+CFXJSE_IsolateTracker::~CFXJSE_IsolateTracker() {}
+
void CFXJSE_IsolateTracker::Append(v8::Isolate* pIsolate) {
m_OwnedIsolates.push_back(pIsolate);
}