mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-02-01 17:21:20 +00:00
Fix Reader argument conversion in static module
This commit is contained in:
parent
3a959453fe
commit
429de19d85
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user