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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user