Skip to content
Commits on Source (3)
node-mapnik (3.7.2+dfsg-3) unstable; urgency=medium
* Team upload.
* Rebuild with mapnik-vector-tile 1.6.1+dfsg-6.
(closes: #913708)
* Add patch by Jérémy Lal to support nodejs 10 / nan 2.11.
(closes: #911344)
-- Bas Couwenberg <sebastic@debian.org> Wed, 21 Nov 2018 09:21:49 +0100
node-mapnik (3.7.2+dfsg-2) unstable; urgency=medium
* Team upload.
......
......@@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 9~),
libmapnik-dev (>= 3.0.21),
libprotozero-dev (>= 1.5.1),
mapnik-utils,
mapnik-vector-tile (>= 1.6.1),
mapnik-vector-tile (>= 1.6.1+dfsg-6),
node-gyp,
node-mocha,
node-nan (>= 2.4.0),
......
Description: Port new instance call to match latest node/nan versions
this patch is backward compatible with previous node/nan versions.
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2018-10-18
Forwarded: not-needed, fixed in master
--- a/src/mapnik_image.cpp
+++ b/src/mapnik_image.cpp
@@ -3220,8 +3220,9 @@ void Image::EIO_AfterFromSVGBytes(uv_wor
{
Image* im = new Image(closure->im);
v8::Local<v8::Value> ext = Nan::New<v8::External>(im);
- v8::Local<v8::Object> image_obj = Nan::New(constructor)->GetFunction()->NewInstance(1, &ext);
- v8::Local<v8::Value> argv[2] = { Nan::Null(), image_obj };
+ Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(constructor)->GetFunction(), 1, &ext);
+ if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Image instance");
+ v8::Local<v8::Value> argv[2] = { Nan::Null(), maybe_local.ToLocalChecked() };
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(closure->cb), 2, argv);
}
closure->cb.Reset();
test_disable_raster_layer.patch
use-packaged-dependencies.patch
no-mason.patch
new_instance.patch