Closed Bug 352274 Opened 20 years ago Closed 20 years ago

js1_5/Regress/regress-313803.js, result: FAILED

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

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!:
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
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 → ---
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
*** 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.