Closed Bug 871781 Opened 12 years ago Closed 12 years ago

Add a prefix option to VariablesView eval macros

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bbenvie, Assigned: bbenvie)

Details

Attachments

(1 file)

JSTerm's wrapping of the the VariablesView eval macros has redundent code which can be streamlined rather simply by providing a `prefix` option for those eval macros.
Attached patch WIP1Splinter Review
Currently, JSTerm's usage of the VariablesView eval macros works by breaking encapsulation of `Variable` objects (by temporarily modifying their "_symbolicName" property). This patch adds a trailing `aPrefix` parameter to the three VariablesView eval macro functions. It refactors JSTerm's usage of these functions to use the prefix parameter instead of breaking encapsulation. It also moves them to static properties of JSTerm instead of being properties on the prototype (since they are neither |this| sensitive or changed per instance of JSTerm).
Assignee: nobody → bbenvie
This is going to be part of bug 828680, so closing this.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: