fixed deprecation warnings for v8-3.21