diff -uNr JavaScript-SpiderMonkey-0.21.orig/Makefile.PL JavaScript-SpiderMonkey-0.21/Makefile.PL --- JavaScript-SpiderMonkey-0.21.orig/Makefile.PL 2012-02-16 15:37:54.235633658 +0200 +++ JavaScript-SpiderMonkey-0.21/Makefile.PL 2012-02-16 15:37:59.963633733 +0200 @@ -28,6 +28,7 @@ libjs.a js32.dll libmozjs.so + libmozjs185.so ); my %possible_install_paths = ( diff -uNr JavaScript-SpiderMonkey-0.21.orig/SpiderMonkey.xs JavaScript-SpiderMonkey-0.21/SpiderMonkey.xs --- JavaScript-SpiderMonkey-0.21.orig/SpiderMonkey.xs 2012-02-16 15:37:54.235633658 +0200 +++ JavaScript-SpiderMonkey-0.21/SpiderMonkey.xs 2012-02-16 15:55:06.212647179 +0200 @@ -68,9 +68,9 @@ * an int. */ XPUSHs(sv_2mortal(newSViv((int)obj))); - XPUSHs(sv_2mortal(newSVpv(JS_GetStringBytes(JSVAL_TO_STRING(id)), 0))); + XPUSHs(sv_2mortal(newSVpv(JS_EncodeString(cx, JSVAL_TO_STRING(id)), 0))); XPUSHs(sv_2mortal(newSVpv(what, 0))); - XPUSHs(sv_2mortal(newSVpv(JS_GetStringBytes(JSVAL_TO_STRING(*vp)), 0))); + XPUSHs(sv_2mortal(newSVpv(JS_EncodeString(cx, JSVAL_TO_STRING(*vp)), 0))); PUTBACK; call_pv("JavaScript::SpiderMonkey::getsetter_dispatcher", G_DISCARD); FREETMPS; @@ -151,10 +151,10 @@ PUSHMARK(SP); XPUSHs(sv_2mortal(newSViv((int)obj))); XPUSHs(sv_2mortal(newSVpv( - JS_GetFunctionName(fun), 0))); + JS_EncodeString(cx, JS_GetFunctionId(fun)), 0))); for(i=0; i