fix StringStream constructor delegation to Stream

This commit is contained in:
Andreas Gal 2011-05-07 22:57:04 -07:00
parent 314889d3d1
commit 506828d522

2
pdf.js
View File

@ -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;