new.target

by 1 contributor:

This article is in need of an editorial review.

This translation is incomplete. Please help translate this article from English.

new.target構文は、すべての関数内で利用可能です。コンストラクタ内では、new.target は、newによって呼び出されたコンストラクタを参照します。通常の関数呼び出しでは、new.targetundefinedです。

構文

new.target

概要

TBD

関数呼び出しにおいてのnew.targetの使用

// TBD

クラス内の new.targetの使用

// TBD

配列関数でのnew.targetの使用

// TBD

仕様

仕様 ステータス コメント
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Built-in Function Objects' in that specification.
Standard Initial definition.

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート 未サポート 41 (41) 未サポート 未サポート 未サポート
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート 未サポート 未サポート 41.0 (41) 未サポート 未サポート 未サポート

関連情報

ドキュメントのタグと貢献者

Contributors to this page: shide55
最終更新者: shide55,
サイドバーを隠す