Express

Using delete operator causes V8 deoptimization

info
performanceUpdated Feb 8, 2026(via Exa)
Technologies:
How to detect:

Using the delete operator to remove object properties changes hidden class and triggers V8 deoptimization of all code accessing that object shape.

Recommended action:

Set property to undefined instead of using delete. This preserves object shape and maintains optimizations.