Skip to content

Instantly share code, notes, and snippets.

@TikiTDO
Created May 31, 2016 08:57
Show Gist options
  • Select an option

  • Save TikiTDO/e614b8dfb311eca7dd9a4eb3df6ccbae to your computer and use it in GitHub Desktop.

Select an option

Save TikiTDO/e614b8dfb311eca7dd9a4eb3df6ccbae to your computer and use it in GitHub Desktop.
All the handlers for a JS proxy object
new Proxy {},
getPrototypeOf: (target) ->
return
setPrototypeOf: (target, prototype) ->
return
isExtensible: (target) ->
return
preventExtensions: (target) ->
return
getOwnPropertyDescriptor: (target, prop) ->
return
defineProperty: (target, prop, descriptor) ->
return
has: (target, prop) ->
return
get: (target, prop, receiver) ->
return
set: (target, prop, value, receiver) ->
return
deleteProperty: (target, prop) ->
return
ownKeys: (target) ->
return
apply: (target, this_arg, argument_list) ->
return
construct: (target, argument_list, new_target) ->
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment