Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 29, 2015
1 parent 832f23f commit e05a5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-stringprep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class UnknownProfileException : public std::exception {
};

// protect constructor from GC
static Persistent<FunctionTemplate> stringprep_constructor;
static Nan::Persistent<FunctionTemplate> stringprep_constructor;

class StringPrep : public Nan::ObjectWrap {
public:
static void Initialize(Local<Object> target)
{
Nan::HandleScope scope;
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
// stringprep_constructor.Reset( t);
stringprep_constructor.Reset(t);
t->InstanceTemplate()->SetInternalFieldCount(1);
Nan::SetPrototypeMethod(t, "prepare", Prepare);

Expand Down

0 comments on commit e05a5c0

Please sign in to comment.