SERVER-1749 guard all v8 function callbacks

This commit is contained in:
Aaron
2010-09-07 21:32:14 -07:00
parent 296ddbb6b8
commit e53c867908
5 changed files with 72 additions and 53 deletions

View File

@@ -17,6 +17,7 @@
#include "v8_wrapper.h"
#include "v8_utils.h"
#include "v8_db.h"
#include <iostream>
@@ -602,7 +603,7 @@ namespace mongo {
}
v8::Handle<v8::FunctionTemplate> getObjectWrapperTemplate(){
v8::Local<v8::FunctionTemplate> t = FunctionTemplate::New( wrapperCons );
v8::Local<v8::FunctionTemplate> t = newV8Function< wrapperCons >();
t->InstanceTemplate()->SetNamedPropertyHandler( wrapperGetHandler );
return t;
}