Re: [webkit-dev] JavaScriptCore question

2011-12-17 Thread Rolando Abarca
On Fri, Dec 16, 2011 at 9:13 AM, Oliver Hunt wrote: > > This looks like you're storing the JSContextRef you receive when your > callback is called. That's incorrect as a given JSContextRef is only > guaranteed to be valid within the callback. All your functions should be > from the same initial

Re: [webkit-dev] JavaScriptCore question

2011-12-16 Thread Oliver Hunt
On Dec 16, 2011, at 9:05 AM, Rolando Abarca wrote: > Hi all, > > I'm using JavaScriptCore for scripting purposes (isolated from webkit), and > I'm encountering the following problem: > > I would like to store a reference to an anonymous function, and later to be > able to call it as a callbac

[webkit-dev] JavaScriptCore question

2011-12-16 Thread Rolando Abarca
Hi all, I'm using JavaScriptCore for scripting purposes (isolated from webkit), and I'm encountering the following problem: I would like to store a reference to an anonymous function, and later to be able to call it as a callback, something like this: ---javascript node.schedule("some name", fun