summaryrefslogtreecommitdiff
path: root/fxjs/JS_Define.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/JS_Define.cpp')
-rw-r--r--fxjs/JS_Define.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fxjs/JS_Define.cpp b/fxjs/JS_Define.cpp
index 171e05c66e..744cb7dd77 100644
--- a/fxjs/JS_Define.cpp
+++ b/fxjs/JS_Define.cpp
@@ -167,6 +167,10 @@ int DateFromTime(double t) {
} // namespace
+void JSDestructor(CFXJS_Engine* pEngine, v8::Local<v8::Object> obj) {
+ pEngine->SetObjectPrivate(obj, nullptr);
+}
+
double JS_GetDateTime() {
if (!FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
return 0;