Subject: | [PATCH] Fix function call return value gc |
returning a local variable in javascript to perl space sometimes causes segfault.
--- JavaScript-0.55/JavaScript.xs 2005-06-29 20:07:06.000000000 +0100
+++ JavaScript-0.55.clkao/JavaScript.xs 2005-10-04 11:58:44.000000000 +0100
@@ -1408,9 +1410,8 @@ jsc_CallFunctionImpl(cx, func_name, args
XSRETURN_UNDEF;
}
- JS_GC(cx->cx);
-
RETVAL = rval;
+ JS_GC(cx->cx);
OUTPUT:
RETVAL