jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Implement ECMA262 Array builtin object.

Open ILyoan opened this issue 11 years ago • 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:

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

ILyoan avatar Apr 28 '15 07:04 ILyoan

Needed for #6

ILyoan avatar Apr 29 '15 05:04 ILyoan

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.

galpeter avatar May 05 '15 13:05 galpeter

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 https://github.com/Samsung/iotjs/issues/3. We might also need equivalent functions for String object.

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

ILyoan avatar May 07 '15 07:05 ILyoan

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

galpeter avatar Jun 05 '15 08:06 galpeter