Skip to content

The properties of the builtins are only enumerable after their first usage #152

@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: 9d423d9
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Description:

Asking for the properties of any builtin objects results in a list, that only contains the previously used property names.
E.g:

var propertyNames = Object.getOwnPropertyNames(Math);
print(propertyNames.join(", "));

results an empty list. However:

var propertyNames = Object.getOwnPropertyNames(Object);
print(propertyNames.join(", "));

gives a list with only the "getOwnPropertyNames" property, since it was used already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourecma builtinsRelated to ECMA built-in routines

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions