This question is about making consistent the definition and properties of the Dirac Delta function from two different sources.
In this online textbook, the following definition is given.
$$\delta_{\alpha}(x) = \begin{cases} \frac{1}{\alpha}, \quad |x| < \frac{\alpha}{2} \\ 0, \quad |x| > \frac{\alpha}{2}\end{cases}$$ Let $g: \mathbb{R} \to \mathbb{R}$ be a continuous function. We define $$ \int_{-\infty}^\infty g(x)\delta(x-x_0) dx=\lim_{\alpha \to 0} \int_{-\infty}^\infty g(x)\delta_{\alpha}(x-x_0) dx$$ Lemma: Let $g: \mathbb{R} \to \mathbb{R}$ be a continuous function. We have $$ \int_{-\infty}^\infty g(x) \delta(x - x_0) dx=g(x_0).$$
However, on the wikipedia article,
...This limit is meant in a weak sense: either that $$ \lim_{\epsilon \to 0^+} \int_{-\infty}^{\infty} \eta_\epsilon(x)f(x)dx = f(0)$$ for all continuous functions $f$ having compact support, or that this limit holds for all smooth functions $f$ with compact support.
where $\eta_\epsilon$ can be defined similarly to $\delta_{\alpha}$ in the previous case.
Why does the first reference not require compact support, while the second reference does? Is one of them incorrect?