Glossary Term
handler.set()
The handler.set() method is a trap for the [[Set]] object internal method, which is used by operations such as using property accessors to set a property’s value.
Return value: The set() method must return a Boolean indicating whether or not the assignment succeeded. Other values are coerced to booleans.
Return value: Many operations, including using property accessors in strict mode, throw a TypeError if the [[Set]] internal method returns false.
Parameters: The following parameters are passed to the set() method. this is bound to the handler.
Parameters: target The target object. property A string or Symbol representing the property name. value The new value of the property to set. receiver The this value for setters; see Reflect.set(). This is usually either the proxy itself or an object that inherits from the proxy.
Syntax example: new Proxy(target, {
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
