One more followup fix: __defineProperty__ should probably be global.

This commit is contained in:
brendan%mozilla.org 2005-06-12 18:45:53 +00:00
Родитель 241e1ec5d6
Коммит 0efbaf9c4b
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -741,7 +741,9 @@ function Activation(f, a) {
// Null Activation.prototype's proto slot so that Object.prototype.* does not
// pollute the scope of heavyweight functions. Also delete its 'constructor'
// property so that id doesn't pollute function scopes.
// property so that id doesn't pollute function scopes. But first, we must
// copy __defineProperty__ down from Object.prototype.
Activation.prototype.__defineProperty__ = Object.prototype.__defineProperty__;
Activation.prototype.__proto__ = null;
delete Activation.prototype.constructor;