src: update after v8 api changes