File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ static Handle<Value> VException(const char *msg) {
5454 return ThrowException (Exception::Error (String::New (msg)));
5555 };
5656
57+ Persistent<FunctionTemplate> BSON::constructor_template;
58+
5759class MyExternal : public String ::ExternalAsciiStringResource {
5860 public:
5961 MyExternal (char *d, size_t length) : ExternalAsciiStringResource() {
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class BSON : public EventEmitter {
2222 static Handle<Value> ToLong (const Arguments &args);
2323 static Handle<Value> ToInt (const Arguments &args);
2424
25+ // Constructor used for creating new BSON objects from C++
26+ static Persistent<FunctionTemplate> constructor_template;
27+
2528 private:
2629 static Handle<Value> New (const Arguments &args);
2730 static Handle<Value> deserialize (char *data, bool is_array_item);
@@ -51,4 +54,4 @@ class BSON : public EventEmitter {
5154 static Handle<Value> decodeDBref (Local<Value> ref, Local<Value> oid, Local<Value> db);
5255};
5356
54- #endif // BSON_H_
57+ #endif // BSON_H_
You can’t perform that action at this time.
0 commit comments