MCPcopy Create free account
hub / github.com/Tencent/Hippy / GetModuleValue

Method GetModuleValue

core/src/scope.cc:192–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192std::shared_ptr<hippy::napi::CtxValue> Scope::GetModuleValue(
193 const std::string& moduleName) {
194 auto it = module_value_map_.find(moduleName);
195 return it != module_value_map_.end() ? it->second : nullptr;
196}
197
198void Scope::AddModuleValue(const std::string& name,
199 std::shared_ptr<CtxValue> value) {

Callers 2

GetInternalBindingFunction · 0.80
GetInternalBindingFunction · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected