Fix the error: Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated.