From 8291bbb3a6ec192d177076b1fb0cd28995e48440 Mon Sep 17 00:00:00 2001 From: Jason Carey Date: Mon, 14 Sep 2015 14:18:35 -0400 Subject: 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. --- src/mongo/scripting/mozjs/cursor_handle.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mongo/scripting/mozjs/cursor_handle.h') 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 { -- cgit v1.2.1