From 429de19d851477f1df2804d5bc0be30228cd0924 Mon Sep 17 00:00:00 2001 From: Marcus Ilgner Date: Sun, 14 May 2017 13:57:52 +0200 Subject: [PATCH] Fix Reader argument conversion in static module --- cli/targets/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/targets/static.js b/cli/targets/static.js index c6ba85713..8176018fc 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -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;