X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FCompressWhite.js;h=50d7476e10984fdd2a4d6bfb8af89db6e7ce894d;hp=ca8cd0ec15cc786b2d1bd449efbca85f3396bf90;hb=HEAD;hpb=60f1a351749173b7d5b04e087178b8e152f88c72 diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index ca8cd0e..50d7476 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -8,7 +8,7 @@ @arg packer {Packer} */ -CompressWhite = function (ts, packer, keepWhite) +const CompressWhite = function (ts, packer, keepWhite) { keepWhite = keepWhite || false; ts.rewind(); @@ -271,7 +271,8 @@ CompressWhite = function (ts, packer, keepWhite) var out = ''; var outoff = 0; - out.length = ts.slen; // prealloc. + try { out.length = ts.slen; } catch (e) {} // prealloc. + out = ''; var tok; while (true) {