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

Use the same global methods for background threads as foreground ones.

Once again, actually using these is NOT SAFE, you need to pay very close
attention to the C source code to know what functions you can use in multiple
threads.

The log function gets overwritten, so it should remain somewhat safe, but
everything else is a potential bug in your background script.
parent 3132b108
No related branches found
No related tags found
No related merge requests found
......@@ -323,7 +323,7 @@ js_load(JSContext *cx, uintN argc, jsval *arglist)
if(!js_CreateCommonObjects(bg->cx
,p->cfg /* common config */
,NULL /* node-specific config */
,NULL /* additional global methods */
,p->methods /* additional global methods */
,0 /* uptime */
,"" /* hostname */
,"" /* socklib_desc */
......
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