Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 37668
Status: new
Priority: 0/
Queue: JavaScript

People
Owner: Nobody in particular
Requestors: gzegzol [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: (no value)



Subject: Compilation problem
There seems to be a problem with compilation of JavaScript.xs. I'm compiling it on a Debian system with libmozjs version 1.9 rc2. JSFunction->object is a JSObject and it can't be cast to jsval. I have to apply a patch to make the JavaScript.xs compile: *************** jsc_call(cx, function, args) *** 294,300 **** tmp = SvIV((SV*)SvRV(PJS_call_perl_method("content", function, NULL))); func = INT2PTR(JSFunction *, tmp); ! if (PJS_call_javascript_function(cx, (jsval) (func->object), args, &rval) == JS_FALSE) { /* Exception was thrown */ XSRETURN_UNDEF; } --- 294,300 ---- tmp = SvIV((SV*)SvRV(PJS_call_perl_method("content", function, NULL))); func = INT2PTR(JSFunction *, tmp); ! if (PJS_call_javascript_function(cx, OBJECT_TO_JSVAL (FUN_OBJECT(func)), args, &rval) == JS_FALSE) { /* Exception was thrown */ XSRETURN_UNDEF; }