Skip to content

Commit 70b4854

Browse files
kyle7zhangtargos
authored andcommitted
doc: fix the wrong name of AssertionError
err.name of AssertionError should be 'AssertionError' PR-URL: #27982 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 11c3ddb commit 70b4854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/assert.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ try {
6868
} catch (err) {
6969
assert(err instanceof assert.AssertionError);
7070
assert.strictEqual(err.message, message);
71-
assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]');
71+
assert.strictEqual(err.name, 'AssertionError');
7272
assert.strictEqual(err.actual, 1);
7373
assert.strictEqual(err.expected, 2);
7474
assert.strictEqual(err.code, 'ERR_ASSERTION');

0 commit comments

Comments
 (0)