Permalink
Browse files

Adding back NODE_PERSISTENT_SYMBOL to avoid compilation errors issued…

… by NODE_PSYMBOL on node <= 0.4.8
  • Loading branch information...
1 parent 84cf7dc commit 00b37dd7d63e50e10e3d48c4e07f15699122f0a3 @mariano committed Nov 17, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 events.cc
  2. +1 −0 node_defs.h
View
@@ -10,7 +10,7 @@ node_db::EventEmitter::EventEmitter() : node::ObjectWrap() {
void node_db::EventEmitter::Init() {
#if !NODE_VERSION_AT_LEAST(0, 5, 0)
- syEmit = NODE_PSYMBOL("emit");
+ syEmit = NODE_PERSISTENT_SYMBOL("emit");
#endif
}
View
@@ -5,6 +5,7 @@
#include <node.h>
#define NODE_CONSTANT(constant) v8::Integer::New(constant)
+#define NODE_PERSISTENT_SYMBOL(s) v8::Persistent<v8::String>::New(v8::String::NewSymbol(s))
#define NODE_ADD_PROTOTYPE_METHOD(templ, name, callback) \
do { \

0 comments on commit 00b37dd

Please sign in to comment.