mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Commit partial work in http.js. Comment out V8::Dispose(); in node.cc
This commit is contained in:
1 parent
baed9d514d
commit
fb96f07ece
4 files changed
+149
-9
No files matched your search
+8
-2
@@ -252,8 +252,8 @@ main (int argc, char *argv[])
|
||||
ev_async_init(&eio_watcher, node_eio_cb);
|
||||
eio_init(eio_want_poll, NULL);
|
||||
|
||||
V8::Initialize();
|
||||
V8::SetFlagsFromCommandLine(&argc, argv, true);
|
||||
V8::Initialize();
|
||||
|
||||
if(argc < 2) {
|
||||
fprintf(stderr, "No script was specified.\n");
|
||||
@@ -317,7 +317,13 @@ main (int argc, char *argv[])
|
||||
ev_loop(EV_DEFAULT_UC_ 0);
|
||||
|
||||
context.Dispose();
|
||||
V8::Dispose();
|
||||
// The following line when uncommented causes an error.
|
||||
// To reproduce do this:
|
||||
// > node --prof test-http_simple.js
|
||||
//
|
||||
// > curl http://localhost:8000/quit/
|
||||
//
|
||||
//V8::Dispose();
|
||||
|
||||
return exit_code;
|
||||
|
||||
|
||||
Reference in new issue
Block a user