Skip to content
Snippets Groups Projects
Commit 6c7d230e authored by deuce's avatar deuce
Browse files

Fix bugs found by dest6.js

parent 8f2df916
No related branches found
No related tags found
No related merge requests found
...@@ -251,6 +251,7 @@ js_close(JSContext *cx, uintN argc, jsval *arglist) ...@@ -251,6 +251,7 @@ js_close(JSContext *cx, uintN argc, jsval *arglist)
private_t* p; private_t* p;
jsrefcount rc; jsrefcount rc;
JS_SET_RVAL(cx, arglist, JSVAL_VOID);
if((p=(private_t*)JS_GetPrivate(cx,obj))==NULL) { if((p=(private_t*)JS_GetPrivate(cx,obj))==NULL) {
JS_ReportError(cx,getprivate_failure,WHERE); JS_ReportError(cx,getprivate_failure,WHERE);
return(JS_FALSE); return(JS_FALSE);
......
...@@ -326,6 +326,8 @@ js_gc(JSContext *cx, uintN argc, jsval *arglist) ...@@ -326,6 +326,8 @@ js_gc(JSContext *cx, uintN argc, jsval *arglist)
JSBool forced=JS_TRUE; JSBool forced=JS_TRUE;
js_branch_t* branch; js_branch_t* branch;
JS_SET_RVAL(cx, arglist, JSVAL_VOID);
if((branch=(js_branch_t*)JS_GetPrivate(cx,obj))==NULL) if((branch=(js_branch_t*)JS_GetPrivate(cx,obj))==NULL)
return(JS_FALSE); return(JS_FALSE);
...@@ -362,6 +364,8 @@ js_on_exit(JSContext *cx, uintN argc, jsval *arglist) ...@@ -362,6 +364,8 @@ js_on_exit(JSContext *cx, uintN argc, jsval *arglist)
jsval *argv=JS_ARGV(cx, arglist); jsval *argv=JS_ARGV(cx, arglist);
js_branch_t* branch; js_branch_t* branch;
JS_SET_RVAL(cx, arglist, JSVAL_VOID);
if((branch=(js_branch_t*)JS_GetPrivate(cx,obj))==NULL) if((branch=(js_branch_t*)JS_GetPrivate(cx,obj))==NULL)
return(JS_FALSE); return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment