Sha256: e11ab46561c10d318719e8d629f34c9189a6dde3bafc3ca53a8b2d9501330488

Contents?: true

Size: 965 Bytes

Versions: 159

Compression:

Stored size: 965 Bytes

Contents

"use strict";

exports.__esModule = true;

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

var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

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

var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function set(object, property, value, receiver) {
  var desc = (0, _getOwnPropertyDescriptor2.default)(object, property);

  if (desc === undefined) {
    var parent = (0, _getPrototypeOf2.default)(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;
};

Version data entries

159 entries across 41 versions & 10 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.59 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.58 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.57 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.56 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.55 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.54 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.53 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.52 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.51 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.50 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.49 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.48 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.47 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.46 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.45 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.44 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.43 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.42 node_modules/babel-runtime/helpers/set.js
immosquare-cleaner-0.1.41 node_modules/babel-runtime/helpers/set.js