From bc8f673522a6eca4dd7be02a344a20b07f2db65f Mon Sep 17 00:00:00 2001 From: Max Schaefer Date: Fri, 3 Nov 2017 09:32:47 +0000 Subject: [PATCH] Remove spurious arguments to `NullStream` constructor. --- src/core/parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/parser.js b/src/core/parser.js index 074990e78..54cfc3568 100644 --- a/src/core/parser.js +++ b/src/core/parser.js @@ -563,7 +563,7 @@ var Parser = (function ParserClosure() { // when we can be absolutely certain that it actually is empty. if (maybeLength === 0) { warn('Empty "' + name + '" stream.'); - return new NullStream(stream); + return new NullStream(); } try { var xrefStreamStats = this.xref.stats.streamTypes; @@ -623,7 +623,7 @@ var Parser = (function ParserClosure() { throw ex; } warn('Invalid stream: \"' + ex + '\"'); - return new NullStream(stream); + return new NullStream(); } }, };