mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 22:29:07 +00:00
Fix getter/setter in object initialiser decompilation to track minimal parenthesization fixes (352010, r=mrbkap).
This commit is contained in:
parent
06c138f96c
commit
5d458db61a
@ -3057,14 +3057,16 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
|
||||
rval);
|
||||
#else
|
||||
if (lastop == JSOP_GETTER || lastop == JSOP_SETTER) {
|
||||
rval += strlen(js_function_str) + 1;
|
||||
todo = Sprint(&ss->sprinter, "%s%s%s %s%.*s",
|
||||
JS_ASSERT(strncmp(rval, js_function_str, 8) == 0 &&
|
||||
rval[8] == ' ');
|
||||
rval += 8 + 1;
|
||||
JS_ASSERT(rval[strlen(rval)-1] == '}');
|
||||
todo = Sprint(&ss->sprinter, "%s%s%s %s%s",
|
||||
lval,
|
||||
(lval[1] != '\0') ? ", " : "",
|
||||
(lastop == JSOP_GETTER)
|
||||
? js_get_str : js_set_str,
|
||||
xval,
|
||||
strlen(rval) - 1,
|
||||
rval);
|
||||
} else {
|
||||
todo = Sprint(&ss->sprinter, "%s%s%s:%s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user