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

This commit is contained in:
brendan%mozilla.org 2005-06-12 18:28:33 +00:00
parent 2e53931b53
commit 241e1ec5d6

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;