зеркало из https://github.com/mozilla/gecko-dev.git
Fix IDENTIFIER resolution to use in, not hasOwnProperty, since we are metacircular on __proto__.
This commit is contained in:
Родитель
1c5280bf2e
Коммит
2158473744
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче