[webkit-dev] JavaScriptCore: Accessing things created in C from script
Thomas Gutteridge
thomas.gutteridge at gmail.com
Thu Dec 11 02:27:44 PST 2008
Hello
Can you help me? I'm using WebKit's JavaScriptCore from within an
application to allow some logic to be implemented in script and
therefore modified without recompilation. Although, I can create
JavaScript functions and objects using the C API, I can't see how to
give them names that can be used to reference them from script.
For example, I'm trying to use JSObjectMakeFunctionWithCallback to
create a JavaScript function with a native implementation. Crucially,
I'd like to then invoke this function from a script. However, the
"name" parameter is apparently only "used when converting the function
to string". The name I give is undefined if I use it in a script.
Is what I'm trying to do possible?
Many thanks
Tom
More information about the webkit-dev
mailing list