Adopt to new v8 api