Guest User

Untitled

a guest
Jan 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. 長くなったのでgistで...
  2.  
  3. 個人的には「仕様が怪しい気配がするが, 強いて言えばWEC: TFTである」という意見です.
  4.  
  5. RegExpのproperties of RegExp instancesを見ればわかりやすいのですが, instanceにpropertyがある場合はこのようなsectionに記述されます. で, 本来Errorもown propertyをきちんと書く必要があると思うのですが, properties of Error instanceはまさかのno special propertiesと言っています. ところが, Errorのconstructorのsectionでown propertyにsetするというように言っているので矛盾してるなあと思っており, で仕様が怪しいなあと思ったのです.
  6. このspecialがinheritと言っているので, Error.prototypeにあるものと同じ名前上書きだから特に新しいものはないよーという意味で書いてあるなら一応筋が通りますが... RegExpのsectionと比べてちょっと怪しいなあという印象です.
  7. ErrorはErrataでError#toStringの大規模変更やNativeErrorのconstructorのmessageのところに"own"が付け足されたり, 結構激しいので...
  8.  
  9. でも何も書いていない以上section 15の
  10.  
  11. Every other property described in this clause has the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
  12.  
  13. に則りTFTなのではないかと思っています. 仕様が今のままで正しいとしても間違っているとしても, 何も指定していないということを鑑みれば, 現時点ではっきりと仕様厨が主張できるのはTFT案ではないかと. 仕様が間違っていて, Enumerable: trueなsectionが追加されるとなればひっくり返りますが...
Add Comment
Please, Sign In to add comment