Skip to content

Commit a026a38

Browse files
committed
fix build in mqttjs
1 parent 21ebeea commit a026a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

writeToStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ function getProperties (stream, properties) {
928928
length += Object.getOwnPropertyNames(value).reduce(function (result, name) {
929929
var currentValue = value[name]
930930
if (Array.isArray(currentValue)) {
931-
result += currentValue.reduce((currentLength, value) => {
931+
result += currentValue.reduce(function (currentLength, value) {
932932
currentLength += 1 + 2 + Buffer.byteLength(name.toString()) + 2 + Buffer.byteLength(value.toString())
933933
return currentLength
934934
}, 0)

0 commit comments

Comments
 (0)