creationix/http-parser-js

Doesn't work with the latest Node version

Closed this issue · 2 comments

_http_common.js:220
      emitDestroy(parser.getAsyncId());
TypeError: parser.getAsyncId is not a function
$ node -v
v8.1.0

Could be dirty fixed on redefinition:

var HTTPParser = require('http-parser-js').HTTPParser;
HTTPParser.prototype.getAsyncId = function() { return false; };
process.binding('http_parser').HTTPParser = HTTPParser;

+1

@etumyan, thanks for your fix.

Published new version with fix, thanks!