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

Method importModule

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:2590–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2588
2589bool JavaScriptRuntime::callComponentFunction(ContextId contextId,
2590 const StringBox& functionName,
2591 const Ref<ValueArray>& additionalParameters) {
2592 auto context = _contextManager.getContext(contextId);
2593 if (context == nullptr) {
2594 return false;
2595 }
2596
2597 callComponentFunction(context, functionName, additionalParameters);
2598
2599 return true;
2600}
2601

Callers 5

callModuleFunctionMethod · 0.95
registerTypeConverterMethod · 0.95
evalModuleSyncMethod · 0.95

Calls 11

getBundleMethod · 0.80
callObjectPropertyMethod · 0.80
valueMethod · 0.65
endMethod · 0.65
getMethod · 0.65
findMethod · 0.45
toAbsolutePathMethod · 0.45
newStringUTF8Method · 0.45
newBoolMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected