Sha256: e3d0e5db95f93061bc0ba6b593fa2bab4e793fbb88ef66fedeb90fff5cc0d9fb
Contents?: true
Size: 1.42 KB
Versions: 9
Compression:
Stored size: 1.42 KB
Contents
var _Object$defineProperty = require("../core-js/object/define-property"); var _sliceInstanceProperty = require("../core-js/instance/slice"); var _reverseInstanceProperty = require("../core-js/instance/reverse"); var _reduceInstanceProperty = require("../core-js/instance/reduce"); var _Object$keys = require("../core-js/object/keys"); var _forEachInstanceProperty = require("../core-js/instance/for-each"); function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var _context, _context2, _context3; var desc = {}; _forEachInstanceProperty(_context = _Object$keys(descriptor)).call(_context, function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = _reduceInstanceProperty(_context2 = _reverseInstanceProperty(_context3 = _sliceInstanceProperty(decorators).call(decorators)).call(_context3)).call(_context2, function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { _Object$defineProperty(target, property, desc); desc = null; } return desc; } module.exports = _applyDecoratedDescriptor;
Version data entries
9 entries across 9 versions & 1 rubygems