30 lines
791 B
JavaScript
30 lines
791 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
Object.defineProperty(exports, "ReflectAdapter", {
|
||
|
enumerable: true,
|
||
|
get: function() {
|
||
|
return ReflectAdapter;
|
||
|
}
|
||
|
});
|
||
|
class ReflectAdapter {
|
||
|
static get(target, prop, receiver) {
|
||
|
const value = Reflect.get(target, prop, receiver);
|
||
|
if (typeof value === "function") {
|
||
|
return value.bind(target);
|
||
|
}
|
||
|
return value;
|
||
|
}
|
||
|
static set(target, prop, value, receiver) {
|
||
|
return Reflect.set(target, prop, value, receiver);
|
||
|
}
|
||
|
static has(target, prop) {
|
||
|
return Reflect.has(target, prop);
|
||
|
}
|
||
|
static deleteProperty(target, prop) {
|
||
|
return Reflect.deleteProperty(target, prop);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//# sourceMappingURL=reflect.js.map
|