Ahh, I remember reading that in the documentation. How frustrating. Thank you for you help.
On Thu, May 28, 2009 at 5:53 PM, Darin Adler <[email protected]> wrote: > 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 > > -- Regards Jack _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

