Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix #250 - don't skip rejected promises unless enabled by the consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Oct 17, 2017
1 parent 4a3a7a9 commit 2a60d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
reason = 'promise_rejection';

// After processing smartStep and so on, check whether we are paused on a promise rejection, and should continue past it
if (!this._pauseOnPromiseRejections) {
if (this._promiseRejectExceptionFilterEnabled && !this._pauseOnPromiseRejections) {
this.chrome.Debugger.resume()
.catch(e => { /* ignore failures */ });
return;
Expand Down

0 comments on commit 2a60d37

Please sign in to comment.