Commit 2a1d3c2d authored by deuce's avatar deuce
Browse files

The timeout to Socket.recv() is the *SECOND* argument, not a copy of the

first one.
parent aa598039
......@@ -1026,7 +1026,7 @@ js_recv(JSContext *cx, uintN argc, jsval *arglist)
JS_ValueToInt32(cx,argv[0],&len);
if(argc > 1 && argv[1]!=JSVAL_VOID) {
JS_ValueToInt32(cx,argv[0],&timeout);
JS_ValueToInt32(cx,argv[1],&timeout);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment