Bug 356085: Incorrect decompilation for named getter function; property and function names are mashed together, patch by Brian Crowder <crowder@fiverocks.com>, r=brendan

git-svn-id: svn://10.0.0.236/trunk@213403 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2006-10-10 13:04:06 +00:00
parent cd838b7d79
commit ce623d2dab

View File

@@ -1023,8 +1023,7 @@ js_obj_toSource(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
}
js_strncpy(&chars[nchars], idstrchars, idstrlength);
nchars += idstrlength;
if (!gsop[j])
chars[nchars++] = ':';
chars[nchars++] = gsop[j] ? ' ' : ':';
#endif
if (vsharplength) {
js_strncpy(&chars[nchars], vsharp, vsharplength);