Implement a WithSupportingVariablesObject

NEW
Unassigned

Status

()

Core
JavaScript Engine
4 years ago
4 years ago

People

(Reporter: Waldo, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
There are a few places in Gecko that use a plain old object on the scope chain.  It would be better if these places used a WithObject instead.  But we can't quite do that, because some of these places *also* expect that code run using that object as scope, will store variables on that object.  The traditional way to make a scope chain element support variables this way, is to setQualifiedVarObj on it.  But we don't want to make the *scope chain element* store the variable, we want to make the object store the variable.

At the least this requires some variable-definition code-rejiggering.  But it seems likely better to introduce a new kind of WithObject to support this explicitly, so I'll probably try that.
You need to log in before you can comment on or make changes to this bug.