Bug: Add HTTPConnection->size() and HTTPServer->size()

Need this for proper garbage collection.
This commit is contained in:
Ryan 2009-06-20 15:17:54 +02:00
Родитель ec5f3dbae1
Коммит 25d14bd001
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -13,6 +13,8 @@ public:
static v8::Persistent<v8::FunctionTemplate> client_constructor_template;
static v8::Persistent<v8::FunctionTemplate> server_constructor_template;
virtual size_t size (void) { return sizeof(HTTPConnection); };
protected:
static v8::Handle<v8::Value> NewClient (const v8::Arguments& args);
@ -41,6 +43,8 @@ public:
static void Initialize (v8::Handle<v8::Object> target);
static v8::Persistent<v8::FunctionTemplate> constructor_template;
virtual size_t size (void) { return sizeof(HTTPServer); };
protected:
static v8::Handle<v8::Value> New (const v8::Arguments& args);