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

Function std_string_to_jsval

scripting/javascript/bindings/ScriptingCore.cpp:1589–1591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587}
1588
1589jsval std_string_to_jsval(JSContext* cx, const std::string& v) {
1590 return c_string_to_jsval(cx, v.c_str());
1591}
1592
1593jsval c_string_to_jsval(JSContext* cx, const char* v, size_t length /* = -1 */) {
1594 if (v == NULL) {

Calls 2

c_string_to_jsvalFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected