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)
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}) {...}
| Reporter | ||
Comment 1•13 years ago
|
||
Pull request at https://github.com/mozilla/rhino/pull/69
Comment 2•13 years ago
|
||
Thanks André, merged to git master:
https://github.com/mozilla/rhino/commit/14fda0240136024e88e60685d8489187369db888
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.
Description
•