#include #include "stdio.h" using namespace v8; template v8_ref::v8_ref(Handle object) : handle(*object) { } template v8_ref::~v8_ref() { printf("Disposing of v8 reference\n"); if (!handle.IsEmpty()) { handle.Dispose(); } } void v8_ref_mark(v8_ref_data* ref) { } void v8_ref_free(v8_ref_data* ref) { delete ref; }