What is `base value` of `reference` in ECMAScript(ECMA-262 5.1)?

…衆ロ難τιáo~ 提交于 2019-12-03 07:25:59
Bergi

Yes, the base value is the context in which the referenced name lives.

For an object property, this would be the object (see §8.12 Object internal methods for setter/getter operations). For a variable, this would be the variable environment (§10.2.1 Environment records). For an unresolvable reference (the things that throw reference errors except when supplied to typeof), this would be undefined.

it does not say how it is set

Reference values are only constructed by very few operations:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!