fixing v8 call to be more compatible with different versions
Merge branch 'v1.13.x' into next