Skip to content

Add option to list symbols in Object.getOwnPropertyNames()#3507

Merged
rerobika merged 1 commit intojerryscript-project:masterfrom
pmarkee:get-property-names
Jan 16, 2020
Merged

Add option to list symbols in Object.getOwnPropertyNames()#3507
rerobika merged 1 commit intojerryscript-project:masterfrom
pmarkee:get-property-names

Conversation

@pmarkee
Copy link
Copy Markdown
Contributor

@pmarkee pmarkee commented Jan 13, 2020

Also a little refactoring of Object.getOwnPropertyNames()

JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu

Comment thread jerry-core/ecma/base/ecma-helpers-collection.c Outdated
Comment thread jerry-core/ecma/builtin-objects/ecma-builtin-object.c
@pmarkee pmarkee marked this pull request as ready for review January 13, 2020 09:14
Comment thread jerry-core/ecma/operations/ecma-objects.c Outdated
Comment thread jerry-core/ecma/operations/ecma-objects.c
Comment thread jerry-core/ecma/operations/ecma-objects.c Outdated
@rerobika rerobika added enhancement An improvement ES2015 Related to ES2015 features labels Jan 13, 2020
@pmarkee
Copy link
Copy Markdown
Contributor Author

pmarkee commented Jan 14, 2020

Thanks for the review @rerobika , I updated the PR.

Copy link
Copy Markdown
Contributor

@galpeter galpeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have js tests for this?

Comment thread jerry-core/ecma/operations/ecma-function-object.c Outdated
Comment thread jerry-core/ecma/builtin-objects/ecma-builtins.c Outdated
Also a little refactoring of Object.getOwnPropertyNames()

JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
@pmarkee
Copy link
Copy Markdown
Contributor Author

pmarkee commented Jan 15, 2020

Thanks for the review @galpeter . I have added a test case including symbols to the Object.assign() test, and a new test file to the es2015 directory to check that Object.getOwnPropertyNames() does not include symbols by default.

Copy link
Copy Markdown
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pmarkee pmarkee requested a review from galpeter January 16, 2020 07:44
Copy link
Copy Markdown
Contributor

@galpeter galpeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rerobika rerobika merged commit 51244b6 into jerryscript-project:master Jan 16, 2020
@pmarkee pmarkee deleted the get-property-names branch December 4, 2020 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement ES2015 Related to ES2015 features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants