diff --git a/pdf.js b/pdf.js index c92bf9bc2..74a5b2182 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;