Fix IDENTIFIER resolution to use in, not hasOwnProperty, since we are metacircular on __proto__.

This commit is contained in:
brendan%mozilla.org 2004-05-17 23:10:53 +00:00
Родитель 1c5280bf2e
Коммит 2158473744
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -709,7 +709,7 @@ function execute(n, x) {
case IDENTIFIER:
for (s = x.scope; s; s = s.parent) {
if (s.object.hasOwnProperty(n.value))
if (n.value in s.object)
break;
}
v = new Reference(s && s.object, n.value, n);