diff options
author | Kyle Zhang <icese7en@gmail.com> | 2019-05-31 00:23:48 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-06-02 10:11:24 +0200 |
commit | 6b57a51b5469e1c639bc067373c0a985a9462b9a (patch) | |
tree | 6d752f2f4a398257e89b02dcbc2325ecc657e9e5 /doc/api/assert.md | |
parent | 187b05640837443353ec4183e203f352ff0af88a (diff) | |
download | android-node-v8-6b57a51b5469e1c639bc067373c0a985a9462b9a.tar.gz android-node-v8-6b57a51b5469e1c639bc067373c0a985a9462b9a.tar.bz2 android-node-v8-6b57a51b5469e1c639bc067373c0a985a9462b9a.zip |
doc: fix the wrong name of AssertionError
err.name of AssertionError should be 'AssertionError'
PR-URL: https://github.com/nodejs/node/pull/27982
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r-- | doc/api/assert.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index 0a7d35f105..22383a16b6 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -68,7 +68,7 @@ try { } catch (err) { assert(err instanceof assert.AssertionError); assert.strictEqual(err.message, message); - assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]'); + assert.strictEqual(err.name, 'AssertionError'); assert.strictEqual(err.actual, 1); assert.strictEqual(err.expected, 2); assert.strictEqual(err.code, 'ERR_ASSERTION'); |