From abc3ad403949e345b51a63b7d63fcc45ebded908 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 00:32:22 +0100 Subject: [PATCH] #1168@trivial: Fixes problem with length property. --- packages/happy-dom/src/dom-token-list/DOMTokenList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/happy-dom/src/dom-token-list/DOMTokenList.ts b/packages/happy-dom/src/dom-token-list/DOMTokenList.ts index 266987f5e..c5d4aa5a9 100644 --- a/packages/happy-dom/src/dom-token-list/DOMTokenList.ts +++ b/packages/happy-dom/src/dom-token-list/DOMTokenList.ts @@ -209,7 +209,7 @@ export default class DOMTokenList implements IDOMTokenList { this[i] = list[i]; } - (this.length) = list.length; + this.#length = list.length; } /**