Fixed #161 - watch-element snippet implementation
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 theconfigurable
option of the object's descriptor. I think that the fact that, at this moment, this function force setting theconfigurable
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.