Skip to content

Instantly share code, notes, and snippets.

@bendtherules
Created November 14, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendtherules/b54dbc76042e893485925b7f59aea863 to your computer and use it in GitHub Desktop.
Save bendtherules/b54dbc76042e893485925b7f59aea863 to your computer and use it in GitHub Desktop.
property-reference-readspecwithus- example
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