Static counterparts for generic methods in String and Array

RESOLVED FIXED

Status

RESOLVED FIXED
13 years ago
11 years ago

People

(Reporter: igor, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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.
(Reporter)

Comment 1

13 years ago
Created attachment 197740 [details] [diff] [review]
Implementation

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.
(Reporter)

Comment 2

13 years ago
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

Comment 3

12 years ago
I tried to merge the patch in but it has conflicts with more recent changes. So it will take more work to integrate.

Comment 4

11 years ago
This functionality was implemented in 1.7R1 I believe.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.