Sha256: 0b1bf59f4adcc77400a184e3ea2b6154940915b7e9b1db9cdd439cf83fe1f625

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

var _Object$getPrototypeOf = require("../core-js/object/get-prototype-of");

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

function _set(object, property, value, receiver) {
  var desc = _Object$getOwnPropertyDescriptor(object, property);

  if (desc === undefined) {
    var parent = _Object$getPrototypeOf(object);

    if (parent !== null) {
      _set(parent, property, value, receiver);
    }
  } else if ("value" in desc && desc.writable) {
    desc.value = value;
  } else {
    var setter = desc.set;

    if (setter !== undefined) {
      setter.call(receiver, value);
    }
  }

  return value;
}

module.exports = _set;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
condenser-0.0.4 lib/condenser/processors/node_modules/@babel/runtime/helpers/set.js