nl_tokens: New trap that reifies [[ Construct ]] . If the target is a function then a call to new proxy ( ... args ) Triggers this trap
pl_tokens: 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: " + <mask> + " is not a function" ) ; } }