Skip to content
Snippets Groups Projects
Commit 92fa0017 authored by deuce's avatar deuce
Browse files

More correct method of handing conversion failures...

parent cb6516f8
No related branches found
No related tags found
No related merge requests found
......@@ -1849,9 +1849,7 @@ js_spy(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
if((sbbs=(sbbs_t*)JS_GetContextPrivate(cx))==NULL)
return(JS_FALSE);
if(JSVAL_IS_NUMBER(argv[0]))
JS_ValueToInt32(cx,argv[0],&node_num);
else
if(!JS_ValueToInt32(cx,argv[0],&node_num))
node_num=0;
sbbs->spy(node_num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment