File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ using v8::TryCatch;
4343using v8::UnboundScript;
4444using v8::V8;
4545using v8::Value;
46- using v8::WeakCallbackData ;
46+ using v8::WeakCallbackInfo ;
4747
4848
4949class ContextifyContext {
@@ -64,7 +64,7 @@ class ContextifyContext {
6464 // Allocation failure or maximum call stack size reached
6565 if (context_.IsEmpty ())
6666 return ;
67- context_.SetWeak (this , WeakCallback<Context> );
67+ context_.SetWeak (this , WeakCallback, v8::WeakCallbackType:: kParameter );
6868 context_.MarkIndependent ();
6969 }
7070
@@ -302,10 +302,8 @@ class ContextifyContext {
302302 }
303303
304304
305- template <class T >
306- static void WeakCallback (const WeakCallbackData<T, ContextifyContext>& data) {
305+ static void WeakCallback (const WeakCallbackInfo<ContextifyContext>& data) {
307306 ContextifyContext* context = data.GetParameter ();
308- context->context_ .ClearWeak ();
309307 delete context;
310308 }
311309
You can’t perform that action at this time.
0 commit comments