diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-10-07 13:50:46 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-10-12 12:25:23 -0400 |
commit | 644e0a886850763603de5c40498c26f78c1f4751 (patch) | |
tree | 10183e54ab450ee4175200cbf1cda65229d9fa25 /src/mongo/scripting/mozjs/implscope.h | |
parent | 86df469d26ef8482ffcf5753929b8a5102086b90 (diff) | |
download | mongo-644e0a886850763603de5c40498c26f78c1f4751.tar.gz |
SERVER-20678 Create a new JS scope for each mapreduce
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; }; /** |