Skip Menu |

This queue is for tickets about the JSP CPAN distribution.

Report information
The Basics
Id: 58602
Status: resolved
Priority: 0/
Queue: JSP

People
Owner: sog [...] msg.com.mx
Requestors: PDONELAN [...] cpan.org
Cc:
AdminCc:

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



Subject: Error when calling set_branch_handler
I get the following error when calling set_branch_handler on a context: Can't locate object method "jsc_set_branch_handler" via package "JSP::Context" at xxx/perl5/lib/perl5/i486-linux-gnu-thread- multi/JSP/Context.pm line 189 Ubuntu 10.04, system Perl 5.10.1 Built by installing xulrunner-1.9.2-dev. Possibly relevant that to install JSP via CPAN I have to set LD_LIBRARY_PATH, e.g. LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9.2.3/ cpan JSP
The support API was removed from SpiderMonkey v1.8+. The fact should be documented and set_branch_handler should croak in that case. That will be the fix in 1.02. Tnks for the report. Salvador.
Thanks Salvador, Does that mean that it's not possible to prevent infinite loops etc.. in eval'd JS in 1.8+? Patrick
No, a new API was introduced in SM 1.8.1 (Gecko 1.9.1), see <https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_SetOperationCallback> I'm working on integrate it. Thanks again for you feedback. Salvador.
Ticket fixed in v1.02. Please check the new JSP::Context::Timeout for a way to control potential runaway scripts. Feedback welcome. Salvador.