mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
[bug] util addProperty
not correctly exporting
This commit is contained in:
parent
580f6c24a2
commit
6292957d5e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
* @api public
|
* @api public
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.export = function (ctx, name, getter) {
|
module.exports = function (ctx, name, getter) {
|
||||||
var context = ('function' === typeof obj) ? ctx.prototype : ctx;
|
var context = ('function' === typeof obj) ? ctx.prototype : ctx;
|
||||||
Object.defineProperty(context, name,
|
Object.defineProperty(context, name,
|
||||||
{ get: function () {
|
{ get: function () {
|
||||||
|
|
Loading…
Reference in a new issue