diff options
author | Jason Carey <jcarey@argv.me> | 2015-09-14 14:18:35 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2015-09-17 19:59:38 -0400 |
commit | 8291bbb3a6ec192d177076b1fb0cd28995e48440 (patch) | |
tree | 5cfb11b9cc1752c9967473c71b957188499b4fce /src/mongo/scripting/mozjs/cursor_handle.h | |
parent | 1b0e65b0ccd5725f97b0a679ac7f7476a242c66e (diff) | |
download | mongo-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.h | 1 |
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 { |