I'm trying to figure out how the setting of a property is being intercepted in jsdom's CSSStyleDeclaration implementation. This is being done for validation purposes. I want to know where this validation is happening. github link
This is the line where the setting is happening. this[lowercaseName] = value;
I'm only aware of one method that can be used to intercept this action. Which is usage of Proxy Object. But the object in question is not a proxy object.
Hence Question: What are the other ways of intercepting(man in the middle) the action of setting properties on an object?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/6yA2kCB
Comments
Post a Comment