1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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;