From 0efbaf9c4b1b676b86de99b155c89a3290120297 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sun, 12 Jun 2005 18:45:53 +0000 Subject: [PATCH] One more followup fix: __defineProperty__ should probably be global. --- js/narcissus/jsexec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/narcissus/jsexec.js b/js/narcissus/jsexec.js index 04111222582b..c4ee84b37366 100644 --- a/js/narcissus/jsexec.js +++ b/js/narcissus/jsexec.js @@ -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;