Skip to content

Commit 7fbb94a

Browse files
committed
fix: Guard for invalid input to fill helper method
1 parent 9bd9ca9 commit 7fbb94a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ function isSameStacktrace(stack1, stack2) {
412412
* @param track {optional} record instrumentation to an array
413413
*/
414414
function fill(obj, name, replacement, track) {
415+
if (obj == null) return;
415416
var orig = obj[name];
416417
obj[name] = replacement(orig);
417418
obj[name].__raven__ = true;

0 commit comments

Comments
 (0)