mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
438 B
14 lines
438 B
/*
|
|
* Object.prototype.__defineSetter__ polyfill
|
|
*/
|
|
|
|
(function () {
|
|
if (typeof Object.prototype.__defineSetter__ === 'undefined') {
|
|
var DP = Object.defineProperty;
|
|
DP(Object.prototype, '__defineSetter__', {
|
|
value: function (n, f) {
|
|
DP(this, n, { enumerable: true, configurable: true, set: f });
|
|
}, writable: true, enumerable: false, configurable: true
|
|
});
|
|
}
|
|
})();
|
|
|