JavaScript with Statement
The with statement is deprecated and should never be used.
Relation with Dynamic Scoping
Crafting Interpreter Chapter 8 mentions that with statement is an example of dynamic scoping since it turns properties of an object into dynamic scope variables.