| 1896 | } |
| 1897 | |
| 1898 | JSBool 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 |
| 1911 | JSBool JSBDebug_LockExecution(JSContext* cx, unsigned argc, jsval* vp) |
nothing calls this directly
no test coverage detected