Перейти к содержанию

Навигация

Движок правил wb-rules 1.7/en: различия между версиями

Новая страница: «# 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…»
(Новая страница: «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:


# Проверяем, есть ли myVar среди локальных переменных (определённой как var myVar = ...).
# Check if there is myVar among local variables (defined as var myVar = ...).
# Если нет, проверяем, есть ли myVar в глобальном объекте (определённой как myVar = ...).
# If not, check if there is myVar in the global object (defined as myVar = ...).
# Если нет, проверяем, есть ли myVar в ''прототипе'' глобального объекта (определённой как global.__proto__.myVar).
# If not, check if myVar is in the "prototype" of the global object (defined as global.__proto__.myVar).


Поиск останавливается, как только переменная найдена.
Поиск останавливается, как только переменная найдена.
12 063

правки