Closed Bug 368452 Opened 18 years ago Closed 17 years ago

Implement __noSuchMethod__ in Rhino

Categories

(Rhino Graveyard :: Core, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: inonit, Assigned: norrisboyd)

Details

Attachments

(1 file)

See bug 196097 for SpiderMonkey.  Basically this implements a default handler when methods are invoked on an object that do not exist, which supports various programming techniques.
I've started investigating this.  Looks like it should require no codegen changes, just some trickery to finesse the existing call code.
This doesn't break any new tests and passes the noSuchMethod test already written.
Assignee: nobody → norrisboyd
Status: NEW → ASSIGNED
Checked in Bob's change:

/cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java,v  <-- ScriptRuntime.java
new revision: 1.257; previous revision: 1.256
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Adding target milestone of 1.6R6 based on the date this bug was resolved FIXED.
Target Milestone: --- → 1.6R6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: