@@ -1615,7 +1615,7 @@ void Image::EIO_AfterCopy(uv_work_t* req)
16151615 {
16161616 Image* im = new Image (closure->im2 );
16171617 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
1618- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
1618+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
16191619 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
16201620 v8::Local<v8::Value> argv[2 ] = { Nan::Null (), maybe_local.ToLocalChecked () };
16211621 Nan::MakeCallback (Nan::GetCurrentContext ()->Global (), Nan::New (closure->cb ), 2 , argv);
@@ -1734,7 +1734,7 @@ v8::Local<v8::Value> Image::_copySync(Nan::NAN_METHOD_ARGS_TYPE info)
17341734 );
17351735 Image* new_im = new Image (imagep);
17361736 v8::Local<v8::Value> ext = Nan::New<v8::External>(new_im);
1737- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
1737+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
17381738 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
17391739 return scope.Escape (maybe_local.ToLocalChecked ());
17401740 }
@@ -2080,7 +2080,7 @@ void Image::EIO_AfterResize(uv_work_t* req)
20802080 {
20812081 Image* im = new Image (closure->im2 );
20822082 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
2083- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2083+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
20842084 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
20852085 v8::Local<v8::Value> argv[2 ] = { Nan::Null (), maybe_local.ToLocalChecked () };
20862086 Nan::MakeCallback (Nan::GetCurrentContext ()->Global (), Nan::New (closure->cb ), 2 , argv);
@@ -2267,7 +2267,7 @@ v8::Local<v8::Value> Image::_resizeSync(Nan::NAN_METHOD_ARGS_TYPE info)
22672267 mapnik::util::apply_visitor (visit, *imagep);
22682268 Image* new_im = new Image (imagep);
22692269 v8::Local<v8::Value> ext = Nan::New<v8::External>(new_im);
2270- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2270+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
22712271 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
22722272 return scope.Escape (maybe_local.ToLocalChecked ());
22732273 }
@@ -2378,7 +2378,7 @@ v8::Local<v8::Value> Image::_openSync(Nan::NAN_METHOD_ARGS_TYPE info)
23782378 }
23792379 Image* im = new Image (imagep);
23802380 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
2381- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2381+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
23822382 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
23832383 return scope.Escape (maybe_local.ToLocalChecked ());
23842384 }
@@ -2516,7 +2516,7 @@ void Image::EIO_AfterOpen(uv_work_t* req)
25162516 {
25172517 Image* im = new Image (closure->im );
25182518 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
2519- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2519+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
25202520 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
25212521 v8::Local<v8::Value> argv[2 ] = { Nan::Null (), maybe_local.ToLocalChecked () };
25222522 Nan::MakeCallback (Nan::GetCurrentContext ()->Global (), Nan::New (closure->cb ), 2 , argv);
@@ -2725,7 +2725,7 @@ v8::Local<v8::Value> Image::_fromSVGSync(bool fromFile, Nan::NAN_METHOD_ARGS_TYP
27252725 image_ptr imagep = std::make_shared<mapnik::image_any>(im);
27262726 Image *im2 = new Image (imagep);
27272727 v8::Local<v8::Value> ext = Nan::New<v8::External>(im2);
2728- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2728+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
27292729 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
27302730 return scope.Escape (maybe_local.ToLocalChecked ());
27312731 }
@@ -2963,7 +2963,7 @@ void Image::EIO_AfterFromSVG(uv_work_t* req)
29632963 {
29642964 Image* im = new Image (closure->im );
29652965 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
2966- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
2966+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
29672967 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
29682968 v8::Local<v8::Value> argv[2 ] = { Nan::Null (), maybe_local.ToLocalChecked () };
29692969 Nan::MakeCallback (Nan::GetCurrentContext ()->Global (), Nan::New (closure->cb ), 2 , argv);
@@ -3296,7 +3296,7 @@ v8::Local<v8::Value> Image::_fromBufferSync(Nan::NAN_METHOD_ARGS_TYPE info)
32963296 image_ptr imagep = std::make_shared<mapnik::image_any>(im_wrapper);
32973297 Image* im = new Image (imagep);
32983298 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
3299- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
3299+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
33003300 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
33013301 v8::Local<v8::Object> image_obj = maybe_local.ToLocalChecked ()->ToObject ();
33023302 image_obj->Set (Nan::New (" _buffer" ).ToLocalChecked (),obj);
@@ -3352,7 +3352,7 @@ v8::Local<v8::Value> Image::_fromBytesSync(Nan::NAN_METHOD_ARGS_TYPE info)
33523352 image_ptr imagep = std::make_shared<mapnik::image_any>(reader->read (0 ,0 ,reader->width (),reader->height ()));
33533353 Image* im = new Image (imagep);
33543354 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
3355- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
3355+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
33563356 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
33573357 return scope.Escape (maybe_local.ToLocalChecked ());
33583358 }
@@ -3523,7 +3523,7 @@ void Image::EIO_AfterFromBytes(uv_work_t* req)
35233523 {
35243524 Image* im = new Image (closure->im );
35253525 v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
3526- v8 ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
3526+ Nan ::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance (Nan::New (constructor)->GetFunction (), 1 , &ext);
35273527 if (maybe_local.IsEmpty ()) Nan::ThrowError (" Could not create new Image instance" );
35283528 v8::Local<v8::Value> argv[2 ] = { Nan::Null (), maybe_local.ToLocalChecked () };
35293529 Nan::MakeCallback (Nan::GetCurrentContext ()->Global (), Nan::New (closure->cb ), 2 , argv);
0 commit comments