Skip to content

Fixed #161 - watch-element snippet implementation

Alexandru Daniel Roman requested to merge issue-161 into next

This MR aims to propose an implementation for the debugging snippet proposal described in #161 (closed).

Things to consider:

  • I slightly changed the wrapPropertyAccess function to receive an argument for the configurable option of the object's descriptor. I think that the fact that, at this moment, this function force setting the configurable option to true is a vulnerability we have. Keeping the property configurable enables overwriting the descriptor we provided.
  • I used a linter exception rule for the debugger breakpoint: // eslint-disable-next-line no-debugger. I don't know if we consider this to be a good practice or not.

Merge request reports