Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to find and define a Internal Method? #1039
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
claudepache
Dec 3, 2017
Contributor
They are described in Chapter 9 Ordinary and Exotic Objects Behaviours.
|
They are described in Chapter 9 Ordinary and Exotic Objects Behaviours. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
@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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
wangyi7099
commented
Dec 4, 2017
|
@ljharb |
ljharb
added
the
question
label
Dec 4, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
This seems answered; closing. |
wangyi7099 commentedDec 3, 2017
•
edited
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?