Skip to content

Commit 429de19

Browse files
committed
Fix Reader argument conversion in static module
1 parent 3a95945 commit 429de19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

+1-1
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)