File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,8 @@ v8::Local<v8::Object> Consumer::NewInstance(v8::Local<v8::Value> arg) {
392392
393393 v8::Local<v8::Value> argv[argc] = { arg };
394394 v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
395- v8::Local<v8::Object> instance = cons->NewInstance (argc, argv);
395+ v8::Local<v8::Object> instance =
396+ Nan::NewInstance (cons, argc, argv).ToLocalChecked ();
396397
397398 return scope.Escape (instance);
398399}
Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ v8::Local<v8::Object> Producer::NewInstance(v8::Local<v8::Value> arg) {
144144
145145 v8::Local<v8::Value> argv[argc] = { arg };
146146 v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
147- v8::Local<v8::Object> instance = cons->NewInstance (argc, argv);
147+ v8::Local<v8::Object> instance =
148+ Nan::NewInstance (cons, argc, argv).ToLocalChecked ();
148149
149150 return scope.Escape (instance);
150151}
Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ v8::Local<v8::Object> Topic::NewInstance(v8::Local<v8::Value> arg) {
122122
123123 v8::Local<v8::Value> argv[argc] = { arg };
124124 v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
125- v8::Local<v8::Object> instance = cons->NewInstance (argc, argv);
125+ v8::Local<v8::Object> instance =
126+ Nan::NewInstance (cons, argc, argv).ToLocalChecked ();
126127
127128 return scope.Escape (instance);
128129}
You can’t perform that action at this time.
0 commit comments