diff options
Diffstat (limited to 'fxjs/cjs_util.cpp')
-rw-r--r-- | fxjs/cjs_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_util.cpp b/fxjs/cjs_util.cpp index 576a85b999..fec727302d 100644 --- a/fxjs/cjs_util.cpp +++ b/fxjs/cjs_util.cpp @@ -387,7 +387,7 @@ CJS_Return CJS_Util::byteToChar( return CJS_Return(JSMessage::kValueError); WideString wStr(static_cast<wchar_t>(arg)); - return CJS_Return(pRuntime->NewString(wStr.c_str())); + return CJS_Return(pRuntime->NewString(wStr.AsStringView())); } // Ensure that sFormat contains at most one well-understood printf formatting |