Commit partial work in http.js. Comment out V8::Dispose(); in node.cc

This commit is contained in:
Ryan committed 2009-05-15 18:11:49 +02:00
1 parent baed9d514d
commit fb96f07ece
4 files changed
+149 -9

No files matched your search

+8 -2
View File
@@ -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;