Closed Bug 773573 Opened 13 years ago Closed 13 years ago

ScriptRuntime.notFunctionError(Object,Object,String) uses wrong object representation for functions with object destructuring parameters

Categories

(Rhino Graveyard :: Core, defect)

head
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anba, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120614114901 Steps to reproduce: ScriptRuntime.notFunctionError(Object,Object,String) computes wrong function string representation for functions with object destructuring parameters. Actual results: js> (function({a}) { return a }).foo() js: "<stdin>", line 10: uncaught JavaScript runtime exception: TypeError: Cannot find function foo in object function ({...}. at <stdin>:10 Expected results: Function string representation should not abbreviate the object destructuring parameter but only the actual function body. That means in this case: function ({a}) {...}
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.