Skip to content

Commit d105f37

Browse files
committed
Merge pull request #472 from mseeley/avoid-max-callstack
Prevent reentrancy in isSetup() when used in log method
2 parents 62403b7 + 29b5830 commit d105f37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/raven.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,10 @@ Raven.prototype = {
485485
isSetup: function() {
486486
if (!this._hasJSON) return false; // needs JSON support
487487
if (!this._globalServer) {
488-
if (!this.ravenNotConfiguredError)
488+
if (!this.ravenNotConfiguredError) {
489+
this.ravenNotConfiguredError = true;
489490
this._logDebug('error', 'Error: Raven has not been configured.');
490-
this.ravenNotConfiguredError = true;
491+
}
491492
return false;
492493
}
493494
return true;

0 commit comments

Comments
 (0)