Describe the bugURLSearchParams should have its size property which indicates the total number of search parameter entries. However, happy-dom implementation always returns undefined when trying to access it.
To Reproduce
Steps to reproduce the behavior:
In node environment, for example in vitest, add this code:
const searchParams = new URLSearchParams()
console.log(searchParams.size)
searchParams.append('foo', 'bar')
console.log(searchParams.size)
Describe the bug URLSearchParams should have its size property which indicates the total number of search parameter entries. However, happy-dom implementation always returns
undefined
when trying to access it.To Reproduce Steps to reproduce the behavior:
Expected behavior Console should return
But it returns
Device: