Closed Bug 1117350 Opened 9 years ago Closed 9 years ago

Implement %TypedArray%.prototype.{reduce, reduceRight}

Categories

(Core :: JavaScript: Standard Library, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: 446240525, Assigned: 446240525)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [DocArea=JS])

Attachments

(2 files)

      No description provided.
I found we already have a "TypedArrayReduce" method in http://dxr.mozilla.org/mozilla-central/source/js/src/builtin/TypedObject.js#669, so how shall we name this "reduce" method in TypedArray.js?
Flags: needinfo?(evilpies)
(In reply to ziyunfei from comment #1)
> I found we already have a "TypedArrayReduce" method in
> http://dxr.mozilla.org/mozilla-central/source/js/src/builtin/TypedObject.
> js#669, so how shall we name this "reduce" method in TypedArray.js?

That function should be renamed to TypedObjectArrayReduce. R=me on s/TypedArray/TypedObjectArray/ for all functions in TypedObject.js.
Flags: needinfo?(evilpies)
Comment on attachment 8543653 [details] [diff] [review]
s/TypedArray/TypedObjectArray/ in TypedObject.js and TypedObject.cpp

Review of attachment 8543653 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8543653 - Flags: review?(till) → review+
Attachment #8545157 - Flags: review?(evilpies)
Attachment #8545157 - Flags: review?(evilpies) → review+
Great, thanks a lot!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: