diff -Nru protobuf-3.6.1.2/debian/changelog protobuf-3.6.1.3/debian/changelog --- protobuf-3.6.1.2/debian/changelog 2018-12-08 16:13:58.000000000 +0000 +++ protobuf-3.6.1.3/debian/changelog 2018-12-09 12:45:11.000000000 +0000 @@ -1,3 +1,10 @@ +protobuf (3.6.1.3-1) unstable; urgency=medium + + * New upstream release. + * Mark libprotobuf-java Multi-Arch foreign. + + -- Laszlo Boszormenyi (GCS) Sun, 09 Dec 2018 12:45:11 +0000 + protobuf (3.6.1.2-1) unstable; urgency=medium * New upstream release. diff -Nru protobuf-3.6.1.2/debian/control protobuf-3.6.1.3/debian/control --- protobuf-3.6.1.2/debian/control 2018-11-26 23:23:31.000000000 +0000 +++ protobuf-3.6.1.3/debian/control 2018-12-09 12:45:11.000000000 +0000 @@ -233,6 +233,7 @@ Package: libprotobuf-java Architecture: all +Multi-Arch: foreign Depends: ${misc:Depends} Section: java Description: Java bindings for protocol buffers diff -Nru protobuf-3.6.1.2/js/binary/utils.js protobuf-3.6.1.3/js/binary/utils.js --- protobuf-3.6.1.2/js/binary/utils.js 2018-12-04 23:52:48.000000000 +0000 +++ protobuf-3.6.1.3/js/binary/utils.js 2018-12-08 01:32:11.000000000 +0000 @@ -971,9 +971,10 @@ return /** @type {!Uint8Array} */(new Uint8Array(data)); } - if (data.constructor === Buffer) { - return /** @type {!Uint8Array} */(new Uint8Array(data)); - } + if (typeof Buffer != 'undefined' && data.constructor === Buffer) { + return /** @type {!Uint8Array} */ ( + new Uint8Array(/** @type {?} */ (data))); + } if (data.constructor === Array) { data = /** @type {!Array} */(data);