We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c7e73 commit b299a49Copy full SHA for b299a49
test/raven.test.js
@@ -873,6 +873,18 @@ describe('Raven (public API)', function() {
873
wrapped();
874
assert.isTrue(spy.calledOnce);
875
});
876
+ it('should copy property when wrapping function', function() {
877
+ var func = function() {};
878
+ func.test = true;
879
+ var wrapped = Raven.wrap(func);
880
+ assert.isTrue(wrapped.test);
881
+ });
882
+ it('should not copy prototype property when wrapping function', function() {
883
884
+ func.prototype.test = true;
885
886
+ assert.isUndefined(new wrapped().test);
887
888
889
890
describe('.context', function() {
0 commit comments