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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user