mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
src: missing Exception::Error in node_http_parser
Fixes: 75adde07f9
PR-URL: https://github.com/nodejs/node/pull/2550
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
1 parent
34de90194b
commit
13fd96dda3
1 file changed
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user