adapting C++ older v8 API