lib/reflect.js
function(target, args) {
    var trap = this.getTrap("construct");
    if (trap === undefined) {
      return Reflect.construct(target, args);
    }

    if (typeof this.target === "function") {
      return trap.call(this.handler, target, args);
    } else {
      throw new TypeError("new: "+ target + " is not a function");
    }
  }
function(target, args) {
    var trap = this.getTrap("construct");
    if (trap === undefined) {
      return Reflect.construct(target, args);
    }

    if (typeof this.target === "function") {
      return trap.call(this.handler, target, args);
    } else {
      throw new TypeError("new: "+ target + " is not a function");
    }
  }
function ( target , args ) { var trap = this . getTrap ( "construct" ) ; if ( trap === undefined ) { return Reflect . construct ( target , args ) ; } if ( typeof this . target === "function" ) { return trap . call ( this . handler , target , args ) ; } else { throw new TypeError ( "new: " + target + " is not a function" ) ; } }
New trap that reifies [[Construct]].
If the target is a function, then a call to
new proxy(...args)
Triggers this trap
New trap that reifies [[ Construct ]] . If the target is a function then a call to new proxy ( ... args ) Triggers this trap