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

Remove incorrect assignment to rval during constructor... newer version of

SpiderMonkey actually use rval.
parent 48f8856c
No related branches found
No related tags found
No related merge requests found
......@@ -2257,8 +2257,6 @@ js_file_constructor(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
return(JS_FALSE);
}
*rval = JSVAL_VOID;
if((p=(private_t*)calloc(1,sizeof(private_t)))==NULL) {
JS_ReportError(cx,"calloc failed");
return(JS_FALSE);
......
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