diff --git a/js/src/jsscript.c b/js/src/jsscript.c index 8cd995881f2..85c6db420bc 100644 --- a/js/src/jsscript.c +++ b/js/src/jsscript.c @@ -725,6 +725,7 @@ script_thaw(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, str = js_ValueToString(cx, argv[0]); if (!str) return JS_FALSE; + argv[0] = STRING_TO_JSVAL(str); /* create new XDR */ xdr = JS_XDRNewMem(cx, JSXDR_DECODE);