Skip to content

Generate builtin getters for Date object #233

Closed
@szledan

Description

@szledan

The Date Prototype Object (15.9.5) has some getters (around 26), that are very similar. For now, I implemented most of them separately in [1]. Maybe we could generate them. The most different parts are in a try-catch block.
Could you give some ideas how I should generate these getter functions.

Some typically differences:

  • the helper functions return value is: int or ecma_number_t
  • Every getter function has a simple and an UTC version.

CC: @egavrin @ruben-ayrapetyan @galpeter @zherczeg @LaszloLango

[1] szledan@51275ff

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions