InterviewMap / CS-Interview-Knowledge-Map

Build the best interview map. The current content includes JS, network, browser related, performance optimization, security, framework, Git, data structure, algorithm, etc.
https://yuchengkai.cn/docs/frontend/
18.3k stars 2.57k forks source link

活动对象在ES5后不存在了 #174

Open atony2099 opened 5 years ago

atony2099 commented 5 years ago

原文: 对于函数 foo 来说,VO 不能访问,只能访问到活动对象(AO)

ES5 (and higher) does no longer use a standard JS object to store variables. It uses lexical environments (with this value and scope chain) that contain environment records of various kinds in which the values for the variables are stored. Javascript, Does ES5+ still has an activation object?