jerryscript-project/jerryscript

Implement ECMA262 Array builtin object.

Closed this issue · 4 comments

JerryScript Engine support Array builtin object but very limited.
The relevant specification is ECMA262 15.4
We need to get it to be done.

Required method/properties:

  • Array(..)
  • new Array(..)
  • Array.prototype
  • Array.isArray(..)
  • Array.prototype.concat(..) #98
  • Array.prototype.every(..) #84
  • Array.prototype.filter(..) #89
  • Array.prototype.forEach(..) #39
  • Array.prototype.indexOf(..) #26
  • Array.prototype.join(..) #38
  • Array.prototype.lastIndexOf(..) #77
  • Array.prototype.map(..) #135
  • Array.prototype.pop(..) #22
  • Array.prototype.push(..) #7
  • Array.prototype.reduce(..) #104
  • Array.prototype.reduceRight(..) #105
  • Array.prototype.reverse(..) #90
  • Array.prototype.shift(..) #24
  • Array.prototype.slice(..) #78
  • Array.prototype.some(..) #85
  • Array.prototype.sort(..) #95
  • Array.prototype.splice(..) #86
  • Array.prototype.toLocaleString(..) #96
  • Array.prototype.toString(..) #36
  • Array.prototype.unshift(..) #25

Needed for #6

Hi, just a reminder, we (here at the University of Szeged) have been working on a few built-ins already, and one of the is the Array built-in. The array is mostly implement (1-2 is still in progress).
We plan to upload the changes here, but sadly we don't have permission to create branches.

Hi @galpeter

The array is mostly implement (1-2 is still in progress).

That's great!

I think now you can fork and work with it. right?
We need some javascript builtins to develop IoT.js. Array.prototype.push() was one of them.
As you might already know, you can see the high priority requirements list at jerryscript-project/iotjs#3.
We might also need equivalent functions for String object.

Anyway I really hope to see the patches from you soon.

For me it seems we have all of the Array built-in properties/functions in the master