翻訳者レビュー ( 英語 → 日本語 )

評価: 53 / ネイティブ 日本語 / 0 Reviews / 2013/09/28 07:28:29

英語

An Object's __proto__ property references the same object as its internal [[Prototype]] (often referred to as "the prototype"), which may be an object or, as in the default case of Object.prototype.__proto__, null . This property is an abstraction error, because a property with the same name, but some other value, could be defined on the object too. If there is a need to reference an object's prototype, the preferred method is to use Object.getPrototypeOf.
A __proto__ pseudo property has been included in §B.3.1 of the draft ECMAScript ed. 6 specification (note that the specification codifies what is already in implementations and what websites may currently rely on).

日本語

オブジェクトの__proto__プロパティは、その内部[[Prototype]] (よく"プロトタイプ"と言われます)として同じオブジェクトを参照します。それは、オブジェクトまたは,オブジェクトプロトタイプ__proto__のデフォルトとして、ヌルとなる場合があります。プロパティが同じ名称を保つため、このプロパティは抽象化エラーになりますが、他のいくつかの値は、オブジェクト上で定義することもできます。オブジェクトのプロパティを参照する必要が生じた場合は、優先メソッドがObject.getPrototypeOfを使用します。
__proto__ 偽プロパティは、ECMAScriptedドラフト第6版の仕様書の§B.3.1に含まれています(ただし、この仕様書はどれが既に実施されていて、どのウェブサイトが現在信頼できるかを体系化したものです)。

レビュー ( 0 )

翻訳者レビューはまだありません