Bug 399199: jsfile.c fails to compile, patch by Jeff Watkins <jeff.watkins.spam@gmail.com> r=crowder, a=not part of the build

This commit is contained in:
crowder@fiverocks.com 2007-11-20 10:23:49 -08:00
parent 27fa0e59fe
commit c148f44b48

View File

@ -2059,7 +2059,7 @@ file_toURL(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
urlChars = js_InflateString(cx, url, &len);
if (!urlChars)
return JS_FALSE;
str = js_NewString(cx, urlChars, len, 0);
str = js_NewString(cx, urlChars, len);
if (!str) {
JS_free(cx, urlChars);
return JS_FALSE;