Skip to content

Commit 14dba67

Browse files
committed
Make Raven.wrap respect prototype chain
See #401
1 parent a7c4d7b commit 14dba67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/raven.js

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ var Raven = {
218218
wrapped[property] = func[property];
219219
}
220220
}
221+
wrapped.prototype = func.prototype;
221222

222223
// Signal that this function has been wrapped already
223224
// for both debugging and to prevent it to being wrapped twice

0 commit comments

Comments
 (0)