MCPcopy Create free account
hub / github.com/9miao/CrossApp / parseConfig

Method parseConfig

scripting/javascript/bindings/ScriptingCore.cpp:2095–2101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2093}
2094
2095bool ScriptingCore::parseConfig(ConfigType type, const std::string& str)
2096{
2097 jsval args[2];
2098 args[0] = int32_to_jsval(cx_, static_cast<int>(type));
2099 args[1] = std_string_to_jsval(cx_, str);
2100 return (JS_TRUE == executeFunctionWithOwner(OBJECT_TO_JSVAL(global_), "__onParseConfig", 2, args));
2101}
2102
2103

Callers

nothing calls this directly

Calls 3

int32_to_jsvalFunction · 0.85
std_string_to_jsvalFunction · 0.85
OBJECT_TO_JSVALFunction · 0.50

Tested by

no test coverage detected