File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1597,10 +1597,6 @@ static Handle<Value> Binding(const Arguments& args) {
15971597 StatWatcher::Initialize (exports);
15981598 File::Initialize (exports);
15991599 binding_cache->Set (module , exports);
1600- } else if (!strcmp (*module_v, " http_parser" )) {
1601- exports = Object::New ();
1602- InitHttpParser (exports);
1603- binding_cache->Set (module , exports);
16041600 } else if (!strcmp (*module_v, " child_process" )) {
16051601 exports = Object::New ();
16061602 ChildProcess::Initialize (exports);
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ NODE_EXT_LIST_ITEM(node_cares)
55NODE_EXT_LIST_ITEM (node_crypto )
66#endif
77NODE_EXT_LIST_ITEM (node_net )
8+ NODE_EXT_LIST_ITEM (node_http_parser )
89NODE_EXT_LIST_ITEM (node_signal_watcher )
910NODE_EXT_LIST_ITEM (node_stdio )
1011NODE_EXT_LIST_END
Original file line number Diff line number Diff line change @@ -473,3 +473,4 @@ void InitHttpParser(Handle<Object> target) {
473473
474474} // namespace node
475475
476+ NODE_MODULE (node_http_parser, node::InitHttpParser);
You can’t perform that action at this time.
0 commit comments