| 850 | Valdi::JSExceptionTracker& exceptionTracker) { |
| 851 | JSValueRef exception = nullptr; |
| 852 | auto stringRef = JSValueToStringCopy(getJSGlobalContext(), fromValdiJSValue(value).valueRef, &exception); |
| 853 | if (exception != nullptr) { |
| 854 | storeException(exceptionTracker, exception); |
| 855 | return Valdi::StringBox(); |
| 856 | } |
| 857 | |
| 858 | auto cppString = jsStringtoStdString(stringRef); |
| 859 | JSStringRelease(stringRef); |
| 860 | return cppString; |
| 861 | } |
| 862 | |
| 863 | Valdi::Ref<Valdi::StaticString> JavaScriptCoreContext::valueToStaticString( |
nothing calls this directly
no test coverage detected