Just a general feedback to the NAN API, but wouldn't it make sense for NanThrowError to return NanUndefined? That would save you all these extra lines here.