Skip to content

Commit 692dcbf

Browse files
author
Ruben Bridgewater
committed
Fix const to var
1 parent 8ced1f5 commit 692dcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function parseType (parser, type) {
227227
case 45: // -
228228
return parseError(parser)
229229
default:
230-
const err = new ReplyError('Protocol error, got ' + JSON.stringify(String.fromCharCode(type)) + ' as reply type byte', 20)
230+
var err = new ReplyError('Protocol error, got ' + JSON.stringify(String.fromCharCode(type)) + ' as reply type byte', 20)
231231
err.offset = parser.offset
232232
err.buffer = JSON.stringify(parser.buffer)
233233
return handleError(parser, err)

0 commit comments

Comments
 (0)