Mirror fix for bug 290774 from SpiderMonkey to Narcissus.

This commit is contained in:
brendan%mozilla.org 2005-06-12 16:08:21 +00:00
parent 3adc4183e7
commit 9c322522a7

View File

@ -738,6 +738,11 @@ function Activation(f, a) {
this.__defineProperty__('arguments', a, true);
}
// Null Activation.prototype's proto slot so that Object.prototype.* does not
// pollute the scope of heavyweight functions.
Activation.prototype.__proto__ = null;
function FunctionObject(node, scope) {
this.node = node;
this.scope = scope;