Skip to content

Commit 7e17ce4

Browse files
committed
check for options before checking for options.deep
1 parent ce9c13d commit 7e17ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var Raven = {
181181
var args = [], i = arguments.length;
182182
// Recursively wrap all of a function's arguments that are
183183
// functions themselves.
184-
if (options.deep !== false) {
184+
if (!options || options && options.deep !== false) {
185185
while(i--) args[i] = Raven.wrap(options, arguments[i]);
186186
}
187187

0 commit comments

Comments
 (0)