MCPcopy Create free account
hub / github.com/Kudo/react-native-v8 / evaluatePreparedJavaScript

Method evaluatePreparedJavaScript

src/v8runtime/V8Runtime.cpp:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446jsi::Value V8Runtime::evaluatePreparedJavaScript(
447 const std::shared_ptr<const jsi::PreparedJavaScript> &js) {
448 assert(
449 dynamic_cast<const jsi::SourceJavaScriptPreparation *>(js.get()) &&
450 "preparedJavaScript must be a SourceJavaScriptPreparation");
451 auto sourceJs =
452 std::static_pointer_cast<const jsi::SourceJavaScriptPreparation>(js);
453 return evaluateJavaScript(sourceJs, sourceJs->sourceURL());
454}
455
456#if REACT_NATIVE_MINOR_VERSION >= 75 || \
457 (REACT_NATIVE_MINOR_VERSION >= 74 && REACT_NATIVE_PATCH_VERSION >= 3)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected