| 860 | return cppString; |
| 861 | } |
| 862 | |
| 863 | Valdi::Ref<Valdi::StaticString> JavaScriptCoreContext::valueToStaticString( |
| 864 | const Valdi::JSValue& value, Valdi::JSExceptionTracker& exceptionTracker) { |
| 865 | JSValueRef exception = nullptr; |
| 866 | auto stringRef = JSValueToStringCopy(getJSGlobalContext(), fromValdiJSValue(value).valueRef, &exception); |
| 867 | if (exception != nullptr) { |
| 868 | storeException(exceptionTracker, exception); |
| 869 | return nullptr; |
| 870 | } |
| 871 |