File: setup.js

package info (click to toggle)
node-css-tree 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,184 kB
  • sloc: javascript: 17,452; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 298 bytes parent folder | download
1
2
3
4
5
6
7
8
// Guard to mitigate the risk of reading non-own properties,
// which can be a potential issue when working with dictionaries
Object.defineProperty(Object.prototype, '__proto_pollute__', {
    enumerable: true,
    get() {
        throw new Error('Attempted to read a non-own property');
    }
});