| 2 | public: |
| 3 | |
| 4 | explicit CustomTable( |
| 5 | v8::Isolate* isolate, |
| 6 | Database* db, |
| 7 | const char* name, |
| 8 | v8::Local<v8::Function> factory |
| 9 | ) : |
| 10 | addon(db->GetAddon()), |
| 11 | isolate(isolate), |
| 12 | db(db), |
| 13 | name(name), |
| 14 | factory(isolate, factory) {} |
| 15 | |
| 16 | static void Destructor(void* self) { |
| 17 | delete static_cast<CustomTable*>(self); |