MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newWrappedObject

Method newWrappedObject

valdi/src/valdi/jscore/JavaScriptCoreContext.cpp:480–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478 true);
479
480 return returnJSValueRef(JSValueMakeString(getJSGlobalContext(), fromValdiJSPropertyName(jsString.get())),
481 kJSTypeString);
482}
483
484Valdi::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 }

Callers

nothing calls this directly

Calls 3

getWrappedObjectClassRefFunction · 0.85
unsafeBridgeRetainFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected