Move jsdoc constructor comments

This commit is contained in:
Frederic Junod
2018-07-17 09:59:00 +02:00
parent 384920734f
commit f2d0b11d24
42 changed files with 369 additions and 334 deletions

View File

@@ -7,12 +7,13 @@ import {VERSION, inherits} from './util.js';
* Error object thrown when an assertion failed. This is an ECMA-262 Error,
* extended with a `code` property.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error}
* @constructor
* @extends {Error}
* @param {number} code Error code.
*/
class AssertionError {
/**
* @param {number} code Error code.
*/
constructor(code) {
const path = VERSION.split('-')[0];
@@ -32,6 +33,9 @@ class AssertionError {
*/
this.code = code;
/**
* @type {string}
*/
this.name = 'AssertionError';
}