Skip to content

Commit 60fabe6

Browse files
authored
Merge pull request #795 from milgner/master
Fix Reader argument conversion in static module
2 parents 3a95945 + 429de19 commit 60fabe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ function buildType(ref, type) {
505505
++indent;
506506
push("if (!(reader instanceof $Reader))");
507507
++indent;
508-
push("reader = $Reader(reader);");
508+
push("reader = new $Reader(reader);");
509509
--indent;
510510
push("return this.decode(reader, reader.uint32());");
511511
--indent;

0 commit comments

Comments
 (0)