Fix Reader argument conversion in static module

This commit is contained in:
Marcus Ilgner 2017-05-14 13:57:52 +02:00
parent 3a959453fe
commit 429de19d85
No known key found for this signature in database
GPG Key ID: F4E8043D991B3205

View File

@ -505,7 +505,7 @@ function buildType(ref, type) {
++indent;
push("if (!(reader instanceof $Reader))");
++indent;
push("reader = $Reader(reader);");
push("reader = new $Reader(reader);");
--indent;
push("return this.decode(reader, reader.uint32());");
--indent;