fix(js): declare FinishStreamWithMetadata result object
- as demanded by strict mode close #2979
This commit is contained in:
parent
553c8ec6f1
commit
41d990e538
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user