Connected and source listed

This commit is contained in:
pandamicro
2017-08-25 10:34:13 +08:00
parent b02c200cba
commit 52e266856d
19 changed files with 4553 additions and 553 deletions
@@ -2035,6 +2035,7 @@ bool JSBDebug_enterNestedEventLoop(JSContext* cx, unsigned argc, JS::Value* vp)
uint32_t nestLevel = ++s_nestedLoopLevel;
while (NS_SUCCEEDED(rv) && s_nestedLoopLevel >= nestLevel) {
drainJobQueue();
if (!NS_ProcessNextEvent())
rv = NS_ERROR_UNEXPECTED;
}
@@ -2195,7 +2196,8 @@ bool JSBDebug_BufferWrite(JSContext* cx, unsigned argc, JS::Value* vp)
{
if (argc == 1) {
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
JSStringWrapper strWrapper(args.get(0));
JS::RootedString jsstr(cx, args.get(0).toString());
JSStringWrapper strWrapper(jsstr);
// this is safe because we're already inside a lock (from clearBuffers)
outData.append(strWrapper.get());
_clientSocketWriteAndClearString(outData);