| 478 | true); |
| 479 | |
| 480 | return returnJSValueRef(JSValueMakeString(getJSGlobalContext(), fromValdiJSPropertyName(jsString.get())), |
| 481 | kJSTypeString); |
| 482 | } |
| 483 | |
| 484 | Valdi::JSValueRef JavaScriptCoreContext::newStringUTF16(const std::u16string_view& str, |
| 485 | Valdi::JSExceptionTracker& exceptionTracker) { |
| 486 | if (utf16Disabled()) { |
| 487 | auto utf8 = Valdi::utf16ToUtf8(str.data(), str.size()); |
| 488 | return newStringUTF8(std::string_view(utf8.first, utf8.second), exceptionTracker); |
| 489 | } |
nothing calls this directly
no test coverage detected