@jlanssie Try await test.test(page)
— otherwise there is a race condition, the await browser.close();
may be called before the page.goto()
.
As .sort()
sorts the array in place (not the array copy), it seems there is no need of return
here. Also, the result of sortByAge()
is not used, this function is called not for its returned result, bur for its side effect.
The last build is https://direct.nodejs.org/download/v8-canary/v18.0.0-v8-canary20220323849445f546/
The last build is https://direct.nodejs.org/download/v8-canary/v18.0.0-v8-canary20220323849445f546/