Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added inline comment to explain the changes needed on one of t…
…he existent tests In the "deletes proxy getter/setter that are not wrapped" test case from the "test-proxied-properties.js" test file, we ensure that when we can a getter/setter for a non wrapped property, the getter and setter is going to affect the original target object, unfortunately this in not true anymore for the root object (the `chrome` API object) because we are using an empty object (which has the `chrome` API object as its prototype and it is not exposed outside of the polyfill sources) as the target of the Proxy instance related to it. Changing the target of the Proxy has been needed to prevent the TypeError exception raised by the Proxy instance when we try to access the "devtools" property (which is non-configurable and read-only on the `chrome` API object).
- Loading branch information