smartlog-destination-devtools/.cache/7a/215a1dce52c587890a626069531173.json
2018-11-13 01:32:39 +01:00

1 line
29 KiB
JSON

{"id":"node_modules/chai/lib/chai/utils/addProperty.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/package.json","includedInParent":true,"mtime":1542058764034},{"name":"../../chai","loc":{"line":7,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/addProperty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai.js"},{"name":"./flag","loc":{"line":8,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/addProperty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/flag.js"},{"name":"./isProxyEnabled","loc":{"line":9,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/addProperty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/isProxyEnabled.js"},{"name":"./transferFlags","loc":{"line":10,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/addProperty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/transferFlags.js"}],"generated":{"js":"/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nvar chai = require('../../chai');\n\nvar flag = require('./flag');\n\nvar isProxyEnabled = require('./isProxyEnabled');\n\nvar transferFlags = require('./transferFlags');\n/**\n * ### .addProperty(ctx, name, getter)\n *\n * Adds a property to the prototype of an object.\n *\n * utils.addProperty(chai.Assertion.prototype, 'foo', function () {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.instanceof(Foo);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.foo;\n *\n * @param {Object} ctx object to which the property is added\n * @param {String} name of property to add\n * @param {Function} getter function to be used for name\n * @namespace Utils\n * @name addProperty\n * @api public\n */\n\n\nmodule.exports = function addProperty(ctx, name, getter) {\n getter = getter === undefined ? function () {} : getter;\n Object.defineProperty(ctx, name, {\n get: function propertyGetter() {\n // Setting the `ssfi` flag to `propertyGetter` causes this function to\n // be the starting point for removing implementation frames from the\n // stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', propertyGetter);\n }\n\n var result = getter.call(this);\n if (result !== undefined) return result;\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n },\n configurable: true\n });\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":1,"column":0}},{"generated":{"line":6,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":0}},{"name":"chai","generated":{"line":6,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":4}},{"generated":{"line":6,"column":8},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":8}},{"name":"require","generated":{"line":6,"column":11},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":11}},{"generated":{"line":6,"column":18},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":18}},{"generated":{"line":6,"column":19},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":19}},{"generated":{"line":6,"column":31},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":18}},{"generated":{"line":6,"column":32},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":7,"column":0}},{"generated":{"line":8,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":0}},{"name":"flag","generated":{"line":8,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":4}},{"generated":{"line":8,"column":8},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":8}},{"name":"require","generated":{"line":8,"column":11},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":11}},{"generated":{"line":8,"column":18},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":18}},{"generated":{"line":8,"column":19},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":19}},{"generated":{"line":8,"column":27},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":18}},{"generated":{"line":8,"column":28},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":8,"column":0}},{"generated":{"line":10,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":0}},{"name":"isProxyEnabled","generated":{"line":10,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":4}},{"generated":{"line":10,"column":18},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":18}},{"name":"require","generated":{"line":10,"column":21},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":21}},{"generated":{"line":10,"column":28},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":28}},{"generated":{"line":10,"column":29},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":29}},{"generated":{"line":10,"column":47},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":28}},{"generated":{"line":10,"column":48},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":9,"column":0}},{"generated":{"line":12,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":0}},{"name":"transferFlags","generated":{"line":12,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":4}},{"generated":{"line":12,"column":17},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":17}},{"name":"require","generated":{"line":12,"column":20},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":20}},{"generated":{"line":12,"column":27},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":27}},{"generated":{"line":12,"column":28},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":28}},{"generated":{"line":12,"column":45},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":27}},{"generated":{"line":12,"column":46},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":10,"column":0}},{"generated":{"line":13,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":12,"column":0}},{"name":"module","generated":{"line":40,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":0}},{"generated":{"line":40,"column":6},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":6}},{"name":"exports","generated":{"line":40,"column":7},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":7}},{"generated":{"line":40,"column":14},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":0}},{"generated":{"line":40,"column":17},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":17}},{"name":"addProperty","generated":{"line":40,"column":26},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":26}},{"generated":{"line":40,"column":37},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":17}},{"name":"ctx","generated":{"line":40,"column":38},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":38}},{"generated":{"line":40,"column":41},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":17}},{"name":"name","generated":{"line":40,"column":43},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":43}},{"generated":{"line":40,"column":47},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":17}},{"name":"getter","generated":{"line":40,"column":49},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":49}},{"generated":{"line":40,"column":55},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":17}},{"generated":{"line":40,"column":57},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":57}},{"name":"getter","generated":{"line":41,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":2}},{"name":"getter","generated":{"line":41,"column":2},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":2}},{"generated":{"line":41,"column":8},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":8}},{"name":"getter","generated":{"line":41,"column":11},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":11}},{"generated":{"line":41,"column":17},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":17}},{"name":"undefined","generated":{"line":41,"column":22},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":22}},{"generated":{"line":41,"column":31},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":11}},{"generated":{"line":41,"column":34},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":34}},{"generated":{"line":41,"column":46},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":46}},{"generated":{"line":41,"column":47},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":48}},{"generated":{"line":41,"column":48},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":11}},{"name":"getter","generated":{"line":41,"column":51},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":51}},{"generated":{"line":41,"column":57},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":39,"column":2}},{"name":"Object","generated":{"line":42,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"name":"Object","generated":{"line":42,"column":2},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"generated":{"line":42,"column":8},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":8}},{"name":"defineProperty","generated":{"line":42,"column":9},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":9}},{"generated":{"line":42,"column":23},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"name":"ctx","generated":{"line":42,"column":24},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":24}},{"generated":{"line":42,"column":27},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"name":"name","generated":{"line":42,"column":29},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":29}},{"generated":{"line":42,"column":33},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"generated":{"line":42,"column":35},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":4}},{"name":"get","generated":{"line":43,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":6}},{"name":"get","generated":{"line":43,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":6}},{"generated":{"line":43,"column":7},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":9}},{"generated":{"line":43,"column":9},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":11}},{"name":"propertyGetter","generated":{"line":43,"column":18},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":20}},{"generated":{"line":43,"column":32},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":11}},{"generated":{"line":43,"column":35},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":37}},{"generated":{"line":44,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":43,"column":8}},{"generated":{"line":45,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":44,"column":8}},{"generated":{"line":46,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":45,"column":8}},{"generated":{"line":47,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":46,"column":8}},{"generated":{"line":48,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":47,"column":8}},{"generated":{"line":49,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":48,"column":8}},{"generated":{"line":50,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":49,"column":8}},{"generated":{"line":51,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":50,"column":8}},{"generated":{"line":52,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":51,"column":8}},{"generated":{"line":53,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":52,"column":8}},{"generated":{"line":54,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":53,"column":8}},{"generated":{"line":55,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":54,"column":8}},{"generated":{"line":56,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":55,"column":8}},{"generated":{"line":57,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":56,"column":8}},{"generated":{"line":58,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":57,"column":8}},{"generated":{"line":59,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":8}},{"generated":{"line":59,"column":10},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":12}},{"name":"isProxyEnabled","generated":{"line":59,"column":11},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":13}},{"generated":{"line":59,"column":25},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":27}},{"generated":{"line":59,"column":27},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":12}},{"generated":{"line":59,"column":31},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":33}},{"name":"flag","generated":{"line":59,"column":32},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":34}},{"generated":{"line":59,"column":36},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":38}},{"generated":{"line":59,"column":37},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":39}},{"generated":{"line":59,"column":41},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":38}},{"generated":{"line":59,"column":43},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":45}},{"generated":{"line":59,"column":53},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":38}},{"generated":{"line":59,"column":54},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":8}},{"generated":{"line":59,"column":56},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":58,"column":58}},{"name":"flag","generated":{"line":60,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":10}},{"name":"flag","generated":{"line":60,"column":8},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":10}},{"generated":{"line":60,"column":12},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":14}},{"generated":{"line":60,"column":13},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":15}},{"generated":{"line":60,"column":17},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":14}},{"generated":{"line":60,"column":19},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":21}},{"generated":{"line":60,"column":25},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":14}},{"name":"propertyGetter","generated":{"line":60,"column":27},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":29}},{"generated":{"line":60,"column":41},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":14}},{"generated":{"line":60,"column":42},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":59,"column":10}},{"generated":{"line":61,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":60,"column":9}},{"generated":{"line":63,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":8}},{"name":"result","generated":{"line":63,"column":10},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":12}},{"generated":{"line":63,"column":16},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":18}},{"name":"getter","generated":{"line":63,"column":19},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":21}},{"generated":{"line":63,"column":25},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":27}},{"name":"call","generated":{"line":63,"column":26},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":28}},{"generated":{"line":63,"column":30},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":21}},{"generated":{"line":63,"column":31},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":33}},{"generated":{"line":63,"column":35},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":21}},{"generated":{"line":63,"column":36},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":62,"column":8}},{"generated":{"line":64,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":63,"column":8}},{"name":"result","generated":{"line":64,"column":10},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":63,"column":12}},{"generated":{"line":64,"column":16},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":63,"column":18}},{"name":"undefined","generated":{"line":64,"column":21},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":63,"column":23}},{"generated":{"line":64,"column":30},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":63,"column":8}},{"generated":{"line":64,"column":32},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":64,"column":10}},{"name":"result","generated":{"line":64,"column":39},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":64,"column":17}},{"generated":{"line":64,"column":45},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":64,"column":10}},{"generated":{"line":65,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":8}},{"name":"newAssertion","generated":{"line":65,"column":10},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":12}},{"generated":{"line":65,"column":22},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":24}},{"generated":{"line":65,"column":25},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":27}},{"name":"chai","generated":{"line":65,"column":29},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":31}},{"generated":{"line":65,"column":33},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":35}},{"name":"Assertion","generated":{"line":65,"column":34},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":36}},{"generated":{"line":65,"column":43},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":27}},{"generated":{"line":65,"column":45},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":66,"column":8}},{"name":"transferFlags","generated":{"line":66,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":8}},{"name":"transferFlags","generated":{"line":66,"column":6},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":8}},{"generated":{"line":66,"column":19},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":21}},{"generated":{"line":66,"column":20},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":22}},{"generated":{"line":66,"column":24},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":21}},{"name":"newAssertion","generated":{"line":66,"column":26},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":28}},{"generated":{"line":66,"column":38},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":21}},{"generated":{"line":66,"column":39},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":67,"column":8}},{"generated":{"line":67,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":68,"column":8}},{"name":"newAssertion","generated":{"line":67,"column":13},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":68,"column":15}},{"generated":{"line":67,"column":25},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":68,"column":8}},{"generated":{"line":68,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":69,"column":7}},{"generated":{"line":68,"column":5},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":4}},{"name":"configurable","generated":{"line":69,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":70,"column":6}},{"name":"configurable","generated":{"line":69,"column":4},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":70,"column":6}},{"generated":{"line":69,"column":16},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":70,"column":18}},{"generated":{"line":69,"column":18},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":70,"column":20}},{"generated":{"line":70,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":42,"column":4}},{"generated":{"line":70,"column":3},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":41,"column":2}},{"generated":{"line":71,"column":0},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":72,"column":1}},{"generated":{"line":71,"column":1},"source":"node_modules/chai/lib/chai/utils/addProperty.js","original":{"line":38,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/addProperty.js":"/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\nvar chai = require('../../chai');\nvar flag = require('./flag');\nvar isProxyEnabled = require('./isProxyEnabled');\nvar transferFlags = require('./transferFlags');\n\n/**\n * ### .addProperty(ctx, name, getter)\n *\n * Adds a property to the prototype of an object.\n *\n * utils.addProperty(chai.Assertion.prototype, 'foo', function () {\n * var obj = utils.flag(this, 'object');\n * new chai.Assertion(obj).to.be.instanceof(Foo);\n * });\n *\n * Can also be accessed directly from `chai.Assertion`.\n *\n * chai.Assertion.addProperty('foo', fn);\n *\n * Then can be used as any other assertion.\n *\n * expect(myFoo).to.be.foo;\n *\n * @param {Object} ctx object to which the property is added\n * @param {String} name of property to add\n * @param {Function} getter function to be used for name\n * @namespace Utils\n * @name addProperty\n * @api public\n */\n\nmodule.exports = function addProperty(ctx, name, getter) {\n getter = getter === undefined ? function () {} : getter;\n\n Object.defineProperty(ctx, name,\n { get: function propertyGetter() {\n // Setting the `ssfi` flag to `propertyGetter` causes this function to\n // be the starting point for removing implementation frames from the\n // stack trace of a failed assertion.\n //\n // However, we only want to use this function as the starting point if\n // the `lockSsfi` flag isn't set and proxy protection is disabled.\n //\n // If the `lockSsfi` flag is set, then either this assertion has been\n // overwritten by another assertion, or this assertion is being invoked\n // from inside of another assertion. In the first case, the `ssfi` flag\n // has already been set by the overwriting assertion. In the second\n // case, the `ssfi` flag has already been set by the outer assertion.\n //\n // If proxy protection is enabled, then the `ssfi` flag has already been\n // set by the proxy getter.\n if (!isProxyEnabled() && !flag(this, 'lockSsfi')) {\n flag(this, 'ssfi', propertyGetter);\n }\n\n var result = getter.call(this);\n if (result !== undefined)\n return result;\n\n var newAssertion = new chai.Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }\n , configurable: true\n });\n};\n"},"lineCount":null}},"hash":"69f0bca13faf77f43d9c6fa506294ee3","cacheData":{"env":{}}}