Skip to main content
assert.AssertionError.prototype.code - assert - Node documentation
property assert.AssertionError.prototype.code

Usage in Deno

import assert from "node:assert";

Value is always ERR_ASSERTION to show that the error is an assertion error.

Type

"ERR_ASSERTION"
Back to top