Ensure setCompatibilityMode continues to restart if previously started.

This was previous behavior, but the previous commit which prevents restarts based on _steppingInterval truthiness broke it because clearInterval does not modify the value of _steppingInterval
This commit is contained in:
Paul Kaplan 2018-11-28 08:47:51 -05:00
parent 4378603d36
commit 421aac6340
2 changed files with 29 additions and 0 deletions
src/engine

View file

@ -1763,6 +1763,7 @@ class Runtime extends EventEmitter {
this.compatibilityMode = compatibilityModeOn;
if (this._steppingInterval) {
clearInterval(this._steppingInterval);
this._steppingInterval = null;
this.start();
}
}