NodeRedis/node-redis-parser

SyntaxError: Use of const in strict mode.

chrisbnt opened this issue · 1 comments

Hi, we're still running some legacy code on node 0.10, a recent change has caused our services to fail with:

.../node_modules/redis/node_modules/redis-parser/lib/parser.js:230 const err = new ReplyError('Protocol error, got ' + JSON.stringify(Strin
     ^^^^^
SyntaxError: Use of const in strict mode.
 at Module._compile (module.js:439:25)
 at Object.Module._extensions..js (module.js:474:10)

using const with "use strict"; fails in node 0.10 / 0.12, yet node-parser's package.json still lists the minimum engine as node 0.10.

the crashing line was introduced in:

6c149ea#diff-3fab227e34d65fe9bb2d6ea53eec41cfR226

Could const either be removed, or the minimum engine requirements updated?

Whoops, this is a dupe of #16, closing.