Move jsdoc constructor comments
This commit is contained in:
@@ -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';
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user