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

How to find and define a Internal Method? #1039

Closed
wangyi7099 opened this Issue Dec 3, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@wangyi7099

wangyi7099 commented Dec 3, 2017

At Object Internal Methods and Internal Slots ,
I see the Internal Method, and the essential internal methods listed by table 5 such as [[GetPrototypeOf]] and so on . But I can't find them ... Can you tell me where I can find them?

@claudepache

This comment has been minimized.

Show comment
Hide comment
@claudepache

claudepache Dec 3, 2017

Contributor

They are described in Chapter 9 Ordinary and Exotic Objects Behaviours.

Contributor

claudepache commented Dec 3, 2017

They are described in Chapter 9 Ordinary and Exotic Objects Behaviours.

@wangyi7099

This comment has been minimized.

Show comment
Hide comment
@wangyi7099

wangyi7099 Dec 3, 2017

@claudepache
Thank you.I see.. But I can't find Internal Methods such as [[GetPrototypeOf]] in Chrome Dev Tool , If they can't see by users, but why can I see the Internal Slots '[[PromiseStatus]]
' in the Promise instance?.. So , Can you explain me the reason? Thank you !

wangyi7099 commented Dec 3, 2017

@claudepache
Thank you.I see.. But I can't find Internal Methods such as [[GetPrototypeOf]] in Chrome Dev Tool , If they can't see by users, but why can I see the Internal Slots '[[PromiseStatus]]
' in the Promise instance?.. So , Can you explain me the reason? Thank you !

@ljharb

This comment has been minimized.

Show comment
Hide comment
@ljharb

ljharb Dec 3, 2017

Member

@wangyi7099 internal slots are generally not directly accessible in the language, although some of them, like [[Prototype]], are exposed indirectly. In the repl/developer tools, engines can show you information that you can’t get any other way, including the internal status of a promise. In your actual code, you can’t synchronously see the state of a promise.

Member

ljharb commented Dec 3, 2017

@wangyi7099 internal slots are generally not directly accessible in the language, although some of them, like [[Prototype]], are exposed indirectly. In the repl/developer tools, engines can show you information that you can’t get any other way, including the internal status of a promise. In your actual code, you can’t synchronously see the state of a promise.

@wangyi7099

This comment has been minimized.

Show comment
Hide comment
@wangyi7099

wangyi7099 Dec 4, 2017

@ljharb
Thank you! I know !!

wangyi7099 commented Dec 4, 2017

@ljharb
Thank you! I know !!

@ljharb ljharb added the question label Dec 4, 2017

@ljharb

This comment has been minimized.

Show comment
Hide comment
@ljharb

ljharb Dec 4, 2017

Member

This seems answered; closing.

Member

ljharb commented Dec 4, 2017

This seems answered; closing.

@ljharb ljharb closed this Dec 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment