From: Andreas Gal Date: Sun, 8 May 2011 05:57:04 +0000 (-0700) Subject: fix StringStream constructor delegation to Stream X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=506828d52258c8bea39d7d7320a0413ae7256707;p=pdf.js.git fix StringStream constructor delegation to Stream --- diff --git a/pdf.js b/pdf.js index c92bf9b..74a5b21 100644 --- a/pdf.js +++ b/pdf.js @@ -76,7 +76,7 @@ var StringStream = (function () { var bytes = new Uint8Array(length); for (var n = 0; n < length; ++n) bytes[n] = str.charCodeAt(n); - this.Stream(bytes); + Stream.call(this, bytes); } constructor.prototype = Stream.prototype;