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; }