Followup to last checkin to delete constructor from Activation.prototype.

git-svn-id: svn://10.0.0.236/trunk@174488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2005-06-12 18:28:33 +00:00
parent 77a481e4a1
commit a94fe847b7

View File

@@ -740,8 +740,10 @@ function Activation(f, a) {
// Null Activation.prototype's proto slot so that Object.prototype.* does not
// pollute the scope of heavyweight functions.
// pollute the scope of heavyweight functions. Also delete its 'constructor'
// property so that id doesn't pollute function scopes.
Activation.prototype.__proto__ = null;
delete Activation.prototype.constructor;
function FunctionObject(node, scope) {
this.node = node;