Closed Bug 6063 Opened 26 years ago Closed 25 years ago

rhino - function.prototype.toString uses 'anonymous' for closures

Categories

(Rhino Graveyard :: Core, defect, P2)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mike+mozilla, Assigned: norrisboyd)

Details

(This bug imported from BugSplat, Netscape's internal bugsystem. It was known there as bug #345390 http://scopus.netscape.com/bugsplat/show_bug.cgi?id=345390 Imported into Bugzilla on 05/06/99 17:20) Looks like 'anonymous' has crept into the toString of closures, rather than just functions constructed by the Function constructor. :CLASSPATH=js.jar:jstools.jar:jsdebug.jar java com.netscape.javasc ript.tools.shell.Main js> function foo () { return 'bar' } js> foo function foo() { return "bar"; } js> bar = new Function("return 'sil'"); function anonymous() { return "sil"; } js> sil = function () { return 'foo'; } function anonymous() { return "foo"; } ... whereas Spider Monkey says js> sil = function () { return "foo" } function () { return "foo"; }
Pesky bugzilla-daemon.
Component: JavaScript → Javascript Engine
QA Contact: cbegle
moving to the "JavaScript Engine" component.
Moving Rhino bugs to new Rhino product.
I'll take this.
Assignee: mccabe → norris
Status: ASSIGNED → NEW
Checking in org/mozilla/javascript/NativeFunction.java; /m/pub/mozilla/js/rhino/org/mozilla/javascript/NativeFunction.java,v <-- Nativ eFunction.java new revision: 1.13; previous revision: 1.12 done
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.