Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #13478 > unrolled thread

JSObject.call(method, ARGS) with Safari

Started by"Richard Maher" <maher_rj@hotspamnotmail.com>
First post2012-04-21 18:51 +0800
Last post2012-04-21 18:51 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript


Contents

  JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-21 18:51 +0800

#13478 — JSObject.call(method, ARGS) with Safari

From"Richard Maher" <maher_rj@hotspamnotmail.com>
Date2012-04-21 18:51 +0800
SubjectJSObject.call(method, ARGS) with Safari
Message-ID<jmu3fq$o7l$1@speranza.aioe.org>
Hi,

(Cross-posted to comp.lang.java.programmer - sorry)

Has anyone been able to pass the ARGS parameter to JSObject's "call" method
*and* pass arguments via the "args" parameterin Safari?

An example of your work-around perhaps?

I'm having no trouble calling methods on all sorts of complex Javascript
objects but when it comes to passing the arguments array I keep getting
nullpointerexception :-(

Firefox, IE, Chrome, and Opera are all onboard and ok.

Cheers Richard Maher

PS. Don't know if this is relevant: -

JSValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object,
JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[],
JSValueRef* exception)
{


    JSValueRef result = toRef(jsObject->call(exec, jsThisObject, argList));
// returns NULL if object->implementsCall() is false

. . . and if so, how one specifies "implementsCall()" as "true"


[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web