src: missing Exception::Error in node_http_parser
Fixes: 75adde07f9a2de7f38a67bec72bd377d450bdb52 PR-URL: https://github.com/nodejs/node/pull/2550 Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
b0962c38e3
commit
c95ca0ba5b
@ -443,7 +443,7 @@ class Parser : public BaseObject {
|
||||
if (rv != 0) {
|
||||
enum http_errno err = HTTP_PARSER_ERRNO(&parser->parser_);
|
||||
|
||||
Local<Value> e = env->parse_error_string();
|
||||
Local<Value> e = Exception::Error(env->parse_error_string());
|
||||
Local<Object> obj = e->ToObject(env->isolate());
|
||||
obj->Set(env->bytes_parsed_string(), Integer::New(env->isolate(), 0));
|
||||
obj->Set(env->code_string(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user