From 41d990e5383b36ba9a2ce4b867214b5f81c06110 Mon Sep 17 00:00:00 2001 From: Matt McCartney Date: Tue, 5 May 2020 14:32:07 -0700 Subject: [PATCH] fix(js): declare FinishStreamWithMetadata result object - as demanded by strict mode close #2979 --- native_client/javascript/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_client/javascript/index.js b/native_client/javascript/index.js index 7d742aad..e349b69d 100644 --- a/native_client/javascript/index.js +++ b/native_client/javascript/index.js @@ -211,7 +211,7 @@ Stream.prototype.finishStream = function() { */ Stream.prototype.finishStreamWithMetadata = function(aNumResults) { aNumResults = aNumResults || 1; - result = binding.FinishStreamWithMetadata(this._impl, aNumResults); + let result = binding.FinishStreamWithMetadata(this._impl, aNumResults); this._impl = null; return result; }