[webkit-dev] bug? // FIXME: <rdar://problem/4949018>
Darin Adler
darin at apple.com
Thu May 28 09:53:53 PDT 2009
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
More information about the webkit-dev
mailing list