MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / JSStringProxy_copy_method

Method JSStringProxy_copy_method

src/JSStringProxy.cc:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25PyObject *JSStringProxyMethodDefinitions::JSStringProxy_copy_method(JSStringProxy *self) {
26 JS::RootedString selfString(GLOBAL_CX, ((JSStringProxy *)self)->jsString->toString());
27 JS::RootedValue selfStringValue(GLOBAL_CX, JS::StringValue(selfString));
28 return StrType::proxifyString(GLOBAL_CX, selfStringValue);
29}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected