]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/src/third_party/duktape-1.8.0/polyfills/object-prototype-definesetter.js
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / src / third_party / duktape-1.8.0 / polyfills / object-prototype-definesetter.js
1 /*
2 * Object.prototype.__defineSetter__ polyfill
3 */
4
5 if (typeof Object.prototype.__defineSetter__ === 'undefined') {
6 Object.defineProperty(Object.prototype, '__defineSetter__', {
7 value: function (n, f) {
8 Object.defineProperty(this, n, { enumerable: true, configurable: true, set: f });
9 }, writable: true, enumerable: false, configurable: true
10 });
11 }