2023-10-03 11:14:36 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
exports.__esModule = true;
|
|
|
|
|
|
|
|
var _defineProperty = require("../core-js/object/define-property");
|
|
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
|
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
exports.default = function (obj, descs) {
|
|
|
|
for (var key in descs) {
|
|
|
|
var desc = descs[key];
|
|
|
|
desc.configurable = desc.enumerable = true;
|
|
|
|
if ("value" in desc) desc.writable = true;
|
|
|
|
(0, _defineProperty2.default)(obj, key, desc);
|
|
|
|
}
|
|
|
|
|
|
|
|
return obj;
|
2023-09-25 15:58:56 +08:00
|
|
|
};
|