Skip to content

Commit 2c1a1f0

Browse files
author
Alexander Mykhailenko
committed
Parsing Issue #16 change const to var (for support nodejs 0.10.x)
1 parent 8ced1f5 commit 2c1a1f0

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)