js: fix build with RUBY_API_VERSION_MAJOR >= 4
#613
+3
−3
Merged