Sha256: 13c7e2a9326eff6a37245aa7fa56fa14e46fa7b59417742b7a272ff306bd80be

Contents?: true

Size: 855 Bytes

Versions: 11

Compression:

Stored size: 855 Bytes

Contents

var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");

var _Object$defineProperty = require("../core-js/object/define-property");

function _defineEnumerableProperties(obj, descs) {
  for (var key in descs) {
    var desc = descs[key];
    desc.configurable = desc.enumerable = true;
    if ("value" in desc) desc.writable = true;

    _Object$defineProperty(obj, key, desc);
  }

  if (_Object$getOwnPropertySymbols) {
    var objectSymbols = _Object$getOwnPropertySymbols(descs);

    for (var i = 0; i < objectSymbols.length; i++) {
      var sym = objectSymbols[i];
      var desc = descs[sym];
      desc.configurable = desc.enumerable = true;
      if ("value" in desc) desc.writable = true;

      _Object$defineProperty(obj, sym, desc);
    }
  }

  return obj;
}

module.exports = _defineEnumerableProperties;

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.8 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/runtime-corejs2/helpers/defineEnumerableProperties.js
condenser-0.0.4 lib/condenser/processors/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js