On May 28, 2009, at 9:49 AM, Jack Wootton wrote:
JSStaticFunction JS_staticFuncs[1] =
{
{funcName, functionCallback, kJSPropertyAttributeNone}
};
There’s your mistake.
To quote the documentation for JSClassDefinition.
...@field staticFunctions A JSStaticFunction array containing the
class's statically declared function properties. Pass NULL to specify
no statically declared function properties. The array must be
terminated by a JSStaticFunction whose name field is NULL.”
The JS_staticFuncs array is not terminated with a function with a name
field of NULL and must be. This should work better.
JSStaticFunction JS_staticFuncs[] =
{
{funcName, functionCallback, kJSPropertyAttributeNone},
{0, 0, 0}
};
Hope that helps!
-- Darin
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev