aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@calebboyd/semaphore/bound.js
blob: e3b0a3e9bfdbf5e45057da2aeebb88c0afdbd0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bound = function bound(target, propertyKey, descriptor) {
    return {
        configurable: true,
        get: function () {
            var value = descriptor.value.bind(this);
            Object.defineProperty(this, propertyKey, { value: value, configurable: true, writable: true });
            return value;
        }
    };
};