function assertErrorMatches(actual, expected) {
	const err = new nodeAssert.AssertionError({
		actual,
		expected,
		operator: NODE_ASSERT_STRICT_EQUAL_OPERATOR,
	});

	return err.message;
}
A helper function to verify Node.js core error messages.
@param {string} actual The actual input
@param {string} expected The expected input
@returns {Function} Error callback to verify that the message is correct
                    for the actual and expected input.