Bug 399199: jsfile.c fails to compile, patch by Jeff Watkins <jeff.watkins.spam@gmail.com> r=crowder, a=not part of the build
authorcrowder@fiverocks.com
Tue, 20 Nov 2007 10:23:49 -0800
changeset 8226 03841cfecb9c7c18c1faf336ee7ba0a063e7201a
parent 8225 1143d2949ef6873e06043af687dd0bedea7da62e
child 8227 f56550e583ba08433cd5a1ea28c1316b1f0d0aa0
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherderautoland@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscrowder, not
bugs399199
milestone1.9b2pre
Bug 399199: jsfile.c fails to compile, patch by Jeff Watkins <jeff.watkins.spam@gmail.com> r=crowder, a=not part of the build
js/src/jsfile.c
--- a/js/src/jsfile.c
+++ b/js/src/jsfile.c
@@ -2054,17 +2054,17 @@ file_toURL(JSContext *cx, JSObject *obj,
     JSFILE_CHECK_NATIVE("toURL");
 
     sprintf(url, "file://%s", file->path);
 
     len = strlen(url);
     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;
     }
     *rval = STRING_TO_JSVAL(str);
 
     /* TODO: js_escape in jsstr.h may go away at some point */
     return js_str_escape(cx, obj, 0, rval, rval);