aurelia-orm
Version:
Makes working with entities and calling your Rest API simple.
13 lines (10 loc) • 427 B
JavaScript
import {logger} from '../aurelia-orm';
// fix for babels property decorator
export function ensurePropertyIsConfigurable(target, propertyName, descriptor) {
if (descriptor && descriptor.configurable === false) {
descriptor.configurable = true;
if (!Reflect.defineProperty(target, propertyName, descriptor)) {
logger.warn(`Cannot make configurable property '${propertyName}' of object`, target);
}
}
}