[webkit-dev] bug? // FIXME: <rdar://problem/4949018>

Jack Wootton jackwootton at gmail.com
Fri May 29 01:41:55 PDT 2009


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 <darin at apple.com> 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


More information about the webkit-dev mailing list