diff --git a/lib/intercept.js b/lib/intercept.js index bf18cd4..85677df 100644 --- a/lib/intercept.js +++ b/lib/intercept.js @@ -99,6 +99,13 @@ else { return original; } + }, window), + set: exportFunction(function(value){ + Object.defineProperty( + constructor.prototype, + name, + {value} + ); }, window) } );