mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
10 years ago
3 changed files with 3 additions and 3 deletions
@ -1,5 +1,5 @@ |
|||
if (typeof Object.prototype.__defineGetter__ === 'undefined') { |
|||
Object.prototype.__defineGetter__ = function (n, f) { |
|||
Object.defineProperty(this, n, { enumerable: true, configurable: true, get: f }); |
|||
} |
|||
}; |
|||
} |
|||
|
@ -1,5 +1,5 @@ |
|||
if (typeof Object.prototype.__defineSetter__ === 'undefined') { |
|||
Object.prototype.__defineSetter__ = function (n, f) { |
|||
Object.defineProperty(this, n, { enumerable: true, configurable: true, set: f }); |
|||
} |
|||
}; |
|||
} |
|||
|
Loading…
Reference in new issue