Subj : Re: JS_ValueToString and STRING_TO_JSVAL To : Weiyang Zhou From : Brendan Eich Date : Thu Aug 11 2005 10:47 pm Weiyang Zhou wrote: > What's the purpose of converting argv[i] to str, the assign str back to > argv[i]? In the end, argv[i] remain the same. Not if !JSVAL_IS_STRING(argv[i]) beforehand. See http://www.mozilla.org/js/spidermonkey/gctips.html for why this is done in native methods such as Load. /be .