Metamorphosis
RSS feed

Object之prototype问题?

因为 ECMA-262 第 15.2.3.1 节规定 Object.prototype 是个不可写的属性[1]。
Object.getOwnPropertyDescriptor(Object, "prototype")
会得到
 {value: Object, writable: false, enumerable: false, configurable: false }

[1] http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.3.1
原发布于 https://www.zhihu.com/question/24338980/answer/27472168


published 01 Jul 2014
blog comments powered by Disqus

Existentials

  • github
  • flickr
  • twitter
  • facebook
  • linkedin

Blogroll

  • wonderfulmore
  • 北京人在悉尼
  • sukie赵
  • cjPanda
  • btsb
  • vivian
  • cityyoho
  • maple
  • tulip
  • 坦克梁
  • stone
  • pavements
  • 问号鱼
  • Schlaraffenland
  • 東亞毒液學研究所
  • 草木贲华
  • 三楼的卡西欧计算器
  • 追忆吹水年华
  • bad habits die hard
  • 多说无益
  • 一天世界
  • 得果德语