← Back to release summary

new.target (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 46)
Intent stage
None

Summary

new.target is a "meta-property" available in all functions. It refers to the constructor invoked by 'new' (if a construct call is underway) or undefined otherwise.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target

Samples: https://googlechrome.github.io/samples/new-target-es6/index.html

View on chromestatus.com