12 063
правки
(Новая страница: «The variable search rule in the first case will look like this:») |
(Новая страница: «# Check if there is myVar among local variables (defined as var myVar = ...). # If not, check if there is myVar in the global object (defined as myVar = ...). # I…») |
||
Строка 127: | Строка 127: | ||
The variable search rule in the first case will look like this: | The variable search rule in the first case will look like this: | ||
# | # Check if there is myVar among local variables (defined as var myVar = ...). | ||
# | # If not, check if there is myVar in the global object (defined as myVar = ...). | ||
# | # If not, check if myVar is in the "prototype" of the global object (defined as global.__proto__.myVar). | ||
Поиск останавливается, как только переменная найдена. | Поиск останавливается, как только переменная найдена. |
правки