In JavaScript ffi, correctly escape backslashes when copying a string

parent fffd82fa
Pipeline #23467 passed with stage
in 5 minutes and 14 seconds