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

Clarify object creation in named constructors #652

Merged
merged 3 commits into from
Feb 25, 2019

Conversation

Ms2ger
Copy link
Member

@Ms2ger Ms2ger commented Feb 25, 2019

This matches the text for normal constructors. I forgot to update this
algorithm in 8e1b529.


Preview | Diff

This matches the text for normal constructors. I forgot to update this
algorithm in 8e1b529.
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

I hope at some point we can find a cleaner solution for "Perform the actions listed in the description".

Rethrow any exceptions.
1. Let |O| be the result of [=converted to an ECMAScript value|converting=] |object|
to an ECMAScript [=interface type=] value |I|.
1. Assert: |O| is an object that implements |I|.
Copy link
Member

Choose a reason for hiding this comment

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

link implements?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no formal definition yet; I'm planning to add one soon, though.

index.bs Outdated
1. Let |O| be the result of [=converted to an ECMAScript value|converting=] |object|
to an ECMAScript [=interface type=] value |I|.
1. Assert: |O| is an object that implements |I|.
1. Assert: |O|.\[[Realm]] is equal to |realm|.
Copy link
Member

Choose a reason for hiding this comment

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

is equal to -> is?

index.bs Outdated
1. Perform the actions listed in the description of |constructor|
with |values| as the argument values
and |object| as the <emu-val>this</emu-val> value.
Rethrow any exceptions.
Copy link
Member

Choose a reason for hiding this comment

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

This is implied, no?

@Ms2ger Ms2ger merged commit c9246d4 into master Feb 25, 2019
@Ms2ger Ms2ger deleted the create-object-named-constructor branch February 25, 2019 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants