Dirty hack to convert old APIs to new APIs of V8.