Fix js_str macro to correctly handle latin1 strings
#3959
Merged
js_str macro to correctly handle latin1 strings
#3959