]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/src/third_party/duktape-1.3.0/polyfills/object-prototype-definegetter.js
bump version to 12.2.12-pve1
[ceph.git] / ceph / src / civetweb / src / third_party / duktape-1.3.0 / polyfills / object-prototype-definegetter.js
1 /*
2 * Object.prototype.__defineGetter__ polyfill
3 */
4
5 if (typeof Object.prototype.__defineGetter__ === 'undefined') {
6 Object.defineProperty(Object.prototype, '__defineGetter__', {
7 value: function (n, f) {
8 Object.defineProperty(this, n, { enumerable: true, configurable: true, get: f });
9 }, writable: true, enumerable: false, configurable: true
10 });
11 }