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

Call js_PrepareToExecute() for background scripts so that exec_path and

scope get set properly.
parent f2f2fd54
Branches
Tags
No related merge requests found
......@@ -608,6 +608,7 @@ js_load(JSContext *cx, uintN argc, jsval *arglist)
JS_SET_RVAL(cx, arglist, OBJECT_TO_JSVAL(js_CreateQueueObject(cx, obj, NULL, bg->msg_queue)));
rc=JS_SUSPENDREQUEST(cx);
JS_RESUMEREQUEST(bg->cx, brc);
js_PrepareToExecute(bg->cx, bg->obj, path, NULL, bg->obj);
JS_ENDREQUEST(bg->cx);
JS_ClearContextThread(bg->cx);
bg->sem=&p->bg_sem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment