Skip to content

Implement Object.getPrototypeOf() #151

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

Closed
wants to merge 1 commit into from
Closed

Implement Object.getPrototypeOf() #151

wants to merge 1 commit into from

Conversation

bzsolt
Copy link
Member

@bzsolt bzsolt commented Jun 4, 2015

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com

/* 1. */
if (!ecma_is_value_object (arg))
{
return ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_TYPE));
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you, please, use ret_value like in the implementation of getOwnPropertyNames routine below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Of course, I've updated it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you.

@egavrin egavrin added this to the ECMA builtins milestone Jun 4, 2015
@egavrin egavrin added the ecma builtins Related to ECMA built-in routines label Jun 4, 2015
@ruben-ayrapetyan
Copy link
Contributor

Looks good to me

// limitations under the License.

try {
Object.getPrototypeOf(x);
Copy link
Contributor

Choose a reason for hiding this comment

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

This test does not call the getPrototypeOf at all, the reason for the exception would be that the x is not defined/assigned a value.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, you're right, I will remove it. Thanks.

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
@egavrin
Copy link
Contributor

egavrin commented Jun 5, 2015

Good to me. make push

@galpeter
Copy link
Contributor

galpeter commented Jun 8, 2015

Rebased & merged: cefeea0

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

Successfully merging this pull request may close these issues.

4 participants