Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

handler.construct()

2 tags 1 category

The handler.construct() method is a trap for the [[Construct]] object internal method, which is used by operations such as the new operator. In order for the new operation to be valid on the resulting Proxy object, the target used to initialize the proxy must itself be a valid constructor.

Return value: The construct() method must return an object, representing the newly created object.

Parameters: The following parameters are passed to the construct() method. this is bound to the handler.

Parameters: target The target constructor object. argumentsList An Array containing the arguments passed to the constructor. newTarget The constructor that was originally called.

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…