Skip to content

Commit

Permalink
Merge pull request #1032 from Cutlery-Drawer/csp-fix
Browse files Browse the repository at this point in the history
Use a hardcoded no-op instead of instancing
  • Loading branch information
astorije committed Aug 23, 2017
2 parents 1ae9386 + 31c3559 commit c592551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chai/utils/addProperty.js
Expand Up @@ -36,7 +36,7 @@ var transferFlags = require('./transferFlags');
*/

module.exports = function addProperty(ctx, name, getter) {
getter = getter === undefined ? new Function() : getter;
getter = getter === undefined ? function () {} : getter;

Object.defineProperty(ctx, name,
{ get: function propertyGetter() {
Expand Down

0 comments on commit c592551

Please sign in to comment.