From a94fe847b7752bc4b43c13c9f1e05fb7b3db4ba2 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sun, 12 Jun 2005 18:28:33 +0000 Subject: [PATCH] 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 --- mozilla/js/narcissus/jsexec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/js/narcissus/jsexec.js b/mozilla/js/narcissus/jsexec.js index 700b96b26d4..04111222582 100644 --- a/mozilla/js/narcissus/jsexec.js +++ b/mozilla/js/narcissus/jsexec.js @@ -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;