Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Object.getOwnPropertyDescriptor function #81

Merged
merged 1 commit into from May 20, 2015
Merged

Implement Object.getOwnPropertyDescriptor function #81

merged 1 commit into from May 20, 2015

Conversation

kkristof
Copy link
Contributor

JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com

@kkristof kkristof added ecma builtins Related to ECMA built-in routines development Feature implementation labels May 19, 2015
@kkristof kkristof added this to the Core ECMA features milestone May 19, 2015
@egavrin egavrin self-assigned this May 19, 2015

ecma_string_t *name_str_p = ecma_get_string_from_value (name_str_value);

ecma_property_t *prop_p = ecma_op_general_object_get_own_property (obj_p, name_str_p);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the ecma_op_general_object_get_own_property can return NULL if there is no such property.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I have to check what should be the ret_value in this case because the standard is a little bit vague about this function.

@egavrin
Copy link
Contributor

egavrin commented May 20, 2015

Looks good, make push.

/cc @galpeter @kkristof

JerryScript-DCO-1.0-Signed-off-by: Kristof Kosztyo kkosztyo.u-szeged@partner.samsung.com
@galpeter
Copy link
Contributor

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Feature implementation ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants