Closed
Bug 352274
Opened 20 years ago
Closed 20 years ago
js1_5/Regress/regress-313803.js, result: FAILED
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 352010
People
(Reporter: bc, Unassigned)
References
()
Details
(Keywords: regression, testcase)
2006091022 1.8 1.9
BUGNUMBER: 313803
STATUS: uneval() on func with embedded objects with getter or setter
FAILED!: uneval() on func with embedded objects with getter or setter
FAILED!:
Expected value
'(function ff() {obj = {get foo () {return "foo";}};return 1;})',
Actual value
'(function ff() {obj = {get foo() {return "foo";};return 1;})'
FAILED!:
Comment 1•20 years ago
|
||
The test is demanding a space after the getter name -- that's not required, nor should it be (it's not something the decompiler does elsewhere).
/be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•20 years ago
|
||
count your braces
(function ff() {obj = {get foo() {return "foo";};return 1;})
SyntaxError on line 1: missing } after property list
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 3•20 years ago
|
||
I did count braces. I ran this in the shell, before marking INVALID and again just now:
js> (function ff() {obj = {get foo () {return "foo";}};return 1;})
function ff() {
obj = {get foo() {return "foo";}};
return 1;
}
js> (function ff() {obj = {get foo () {return "foo";}};return 1;}).toString()
function ff() {
obj = {get foo() {return "foo";}};
return 1;
}
js> eval((function ff() {obj = {get foo () {return "foo";}};return 1;}).toString())
js> ff
function ff() {
obj = {get foo() {return "foo";}};
return 1;
}
js> (function ff() {obj = {get foo () {return "foo";}};return 1;}).toSource()
(function ff() {obj = {get foo() {return "foo";}};return 1;})
js> eval((function ff() {obj = {get foo () {return "foo";}};return 1;}).toSource())
function ff() {
obj = {get foo() {return "foo";}};
return 1;
}
eval likes it -- what am I missing?
/be
| Reporter | ||
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 352010 ***
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•