diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/implscope.h')
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.h b/src/mongo/scripting/mozjs/implscope.h index 56eda215fff..affcdce1470 100644 --- a/src/mongo/scripting/mozjs/implscope.h +++ b/src/mongo/scripting/mozjs/implscope.h @@ -29,6 +29,7 @@ #pragma once #include <jsapi.h> +#include <vm/PosixNSPR.h> #include "mongo/client/dbclientcursor.h" #include "mongo/scripting/mozjs/bindata.h" @@ -317,8 +318,9 @@ private: MozRuntime(); ~MozRuntime(); - JSRuntime* _runtime; - JSContext* _context; + PRThread* _thread = nullptr; + JSRuntime* _runtime = nullptr; + JSContext* _context = nullptr; }; /** |