Closed Bug 310342 Opened 19 years ago Closed 16 years ago

Static counterparts for generic methods in String and Array

Categories

(Rhino Graveyard :: Core, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: igor, Unassigned)

Details

Attachments

(1 file)

Rhino should add a static counterpart of generic methods of Array.prototype and
String.prototype as described in
http://developer.mozilla.org/en/docs/New_in_JavaScript_1.6#Array_and_String_generics
.

This is Rhino version of SpiderMonkey bug 304828.
Attached patch ImplementationSplinter Review
The patch adds all generic methods from SpiderMonkey sources to String and
Array constructors. 

In addition I moved the code from ScriptRuntime.applyOrCall to convert argument
to thisObj into separated ScriptRuntime.getThisFromArgs. Patch use it to
implement generic calls and thisObj extraction in NativeArray.iterativeMethods
added as a part of fix for bug 310323.
Reassigning to please_see_bug_288433@eml.cc pending resolution of bug 288433
Assignee: igor.bukanov → please_see_bug_288433
Assignee: please_see_bug_288433 → nobody
I tried to merge the patch in but it has conflicts with more recent changes. So it will take more work to integrate.
This functionality was implemented in 1.7R1 I believe.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: