summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/cursor_handle.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2015-09-14 14:18:35 -0400
committerJason Carey <jcarey@argv.me>2015-09-17 19:59:38 -0400
commit8291bbb3a6ec192d177076b1fb0cd28995e48440 (patch)
tree5cfb11b9cc1752c9967473c71b957188499b4fce /src/mongo/scripting/mozjs/cursor_handle.h
parent1b0e65b0ccd5725f97b0a679ac7f7476a242c66e (diff)
downloadmongo-8291bbb3a6ec192d177076b1fb0cd28995e48440.tar.gz
SERVER-20080 Constrain ctor calls for JS types
Several types shouldn't be called as a ctor: * NativeFunction * Cursor * CursorHandle * NativeFunction This prevents them from being called as such.
Diffstat (limited to 'src/mongo/scripting/mozjs/cursor_handle.h')
-rw-r--r--src/mongo/scripting/mozjs/cursor_handle.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/cursor_handle.h b/src/mongo/scripting/mozjs/cursor_handle.h
index 95f00a3d964..792b382ae5e 100644
--- a/src/mongo/scripting/mozjs/cursor_handle.h
+++ b/src/mongo/scripting/mozjs/cursor_handle.h
@@ -42,7 +42,6 @@ namespace mozjs {
* callers are all via the Mongo object.
*/
struct CursorHandleInfo : public BaseInfo {
- static void construct(JSContext* cx, JS::CallArgs args);
static void finalize(JSFreeOp* fop, JSObject* obj);
struct Functions {