mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
Merge pull request #1032 from Cutlery-Drawer/csp-fix
Use a hardcoded no-op instead of instancing
This commit is contained in:
commit
c592551795
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue