Browse Source

Improved docs.

Maciej Bukowski 6 years ago
parent
commit
471fa4dbb3
1 changed files with 2 additions and 3 deletions
  1. 2 3
      packages/ckeditor5-watchdog/src/watchdog.js

+ 2 - 3
packages/ckeditor5-watchdog/src/watchdog.js

@@ -88,7 +88,6 @@ export default class Watchdog {
 					this._handleError( evt.reason, evt );
 					this._handleError( evt.reason, evt );
 				}
 				}
 			} else {
 			} else {
-				// TODO: what throw 'foo' will do?
 				this._handleError( evt.error, evt );
 				this._handleError( evt.error, evt );
 			}
 			}
 		};
 		};
@@ -316,7 +315,7 @@ export default class Watchdog {
 	 * @private
 	 * @private
 	 * @fires error
 	 * @fires error
 	 * @param {Error} error Error.
 	 * @param {Error} error Error.
-	 * @param {ErrorEvent} evt Error event.
+	 * @param {ErrorEvent|PromiseRejectionEvent} evt Error event.
 	 */
 	 */
 	_handleError( error, evt ) {
 	_handleError( error, evt ) {
 		if ( error.is && error.is( 'CKEditorError' ) && error.context === undefined ) {
 		if ( error.is && error.is( 'CKEditorError' ) && error.context === undefined ) {
@@ -328,7 +327,7 @@ export default class Watchdog {
 				message: error.message,
 				message: error.message,
 				stack: error.stack,
 				stack: error.stack,
 
 
-				// evt.source, evt.lineno and evt.colno are available only in ErrorEvent
+				// `evt.source`, `evt.lineno` and `evt.colno` are available only in ErrorEvent events
 				source: evt.source,
 				source: evt.source,
 				lineno: evt.lineno,
 				lineno: evt.lineno,
 				colno: evt.colno,
 				colno: evt.colno,