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

Function JSBDebug_BufferWrite

scripting/javascript/bindings/ScriptingCore.cpp:1898–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1896}
1897
1898JSBool JSBDebug_BufferWrite(JSContext* cx, unsigned argc, jsval* vp)
1899{
1900 if (argc == 1) {
1901 jsval* argv = JS_ARGV(cx, vp);
1902 JSStringWrapper strWrapper(argv[0]);
1903 // this is safe because we're already inside a lock (from clearBuffers)
1904 outData.append(strWrapper.get());
1905 _clientSocketWriteAndClearString(outData);
1906 }
1907 return JS_TRUE;
1908}
1909
1910// this should lock the execution of the running thread, waiting for a signal
1911JSBool JSBDebug_LockExecution(JSContext* cx, unsigned argc, jsval* vp)

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected