Here is the code


// This will be the JSObjectCallAsFunctionCallback

static JSValueRef JS_func(JSContextRef ctx,
                                        JSObjectRef function,
                                        JSObjectRef thisObject,
                                        size_t argumentCount,
                                        const JSValueRef arguments[],
                                        JSValueRef *exception)
        {
        assert(ctx);
        }




int myMainFunc
{

char funcName[] = { 'f', 'u', 'n', 'c', '\0' };

JSObjectCallAsFunctionCallback functionCallback = JS_func;

// Array of JSStaticFunction structures (only 1 entry at the moment).

JSStaticFunction JS_staticFuncs[1] =
          {
                          {funcName, functionCallback, kJSPropertyAttributeNone}
          };

char toStringVal[] = { 'm', 'y', 'o', 'b', 'j', '\0' };


 JSClassDefinition globalObjectClassDefinition =
          {
                          1, kJSPropertyAttributeNone, toStringVal, 0,
                          0, JS_staticFuncs, 0, 0,
                          0, 0, 0, 0,
                          0, 0, 0, 0,
                          0
          };

// There error occurs here
 JSClassRef globalObjectClass = JSClassCreate(&globalObjectClassDefinition);

}


On Thu, May 28, 2009 at 5:30 PM, Darin Adler <da...@apple.com> wrote:
> On May 28, 2009, at 9:24 AM, Jack Wootton wrote:
>
>> In the file JavaScriptCore/API/JSClassRef.cpp, in the constructor for
>> OpaqueJSClass. there is a comment
>>
>> // FIXME: <rdar://problem/4949018>
>
> That hasn’t been in the source code for over a year
> <http://trac.webkit.org/changeset/33374>. You are working with an old
> version. We may not be able to help you with this version.
>
> And it doesn’t seem to have anything to do with your problem.
>
>> Is the following comment related to the problem I am experiencing?
>>
>> // FIXME: <rdar://problem/4949018>
>
> No.
>
>> Does anyone have any information on the problem I have outlined?
>
> The problem sounds like a mistake in your code. You've quoted a lot of
> JavaScriptCore code, but not your own code and the arguments you're passing.
>
>    -- Darin
>
>



-- 
Regards
Jack
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to