Created
November 14, 2020 07:26
-
-
Save bendtherules/b54dbc76042e893485925b7f59aea863 to your computer and use it in GitHub Desktop.
property-reference-readspecwithus- example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj = { | |
a: 123, | |
get ab() {return 456}, | |
get abc() {return this.a}, | |
} | |
obj.a | |
obj["a"+"b"] | |
// TODO: Add a proxy example | |
// GetV - https://tc39.es/ecma262/#sec-getv | |
// ToObject | |
// [[Get]] - OrdinaryGet, Proxy.[[Get]] | |
// OrdinaryGet - calls getter | |
// https://tc39.es/ecma262/#sec-ordinaryget | |
// Proxy has special [[get]] | |
// https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-get-p-receiver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment