fix(js): declare FinishStreamWithMetadata result object

- as demanded by strict mode

close #2979
This commit is contained in:
Matt McCartney 2020-05-05 14:32:07 -07:00
parent 553c8ec6f1
commit 41d990e538

View File

@ -211,7 +211,7 @@ Stream.prototype.finishStream = function() {
*/ */
Stream.prototype.finishStreamWithMetadata = function(aNumResults) { Stream.prototype.finishStreamWithMetadata = function(aNumResults) {
aNumResults = aNumResults || 1; aNumResults = aNumResults || 1;
result = binding.FinishStreamWithMetadata(this._impl, aNumResults); let result = binding.FinishStreamWithMetadata(this._impl, aNumResults);
this._impl = null; this._impl = null;
return result; return result;
} }