We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using new Window() in a Bun environment, the script crash
new Window()
To Reproduce Steps to reproduce the behavior:
happy-dom
bun ./index.js
Expected behavior The program should run correctly
Screenshots If applicable, add screenshots to help explain your problem.
Device:
Additional context
26 | resolve(); 27 | } 28 | else { 29 | this.readyStateCallbacks.push(resolve); 30 | if (this.totalTasks === 0 && !this.immediate) { 31 | this.immediate = this.window.requestAnimationFrame(this.endTask.bind(this)); ^ TypeError: this.window.requestAnimationFrame is not a function. (In 'this.window.requestAnimationFrame(this.endTask.bind(this))', 'this.window.requestAnimationFrame' is undefined) at ${PROJECT_ROOT}\node_modules\happy-dom\lib\nodes\document\DocumentReadyStateManager.js:31:38 at new Promise (:1:21) at waitUntilComplete (${PROJECT_ROOT}\node_modules\happy-dom\lib\nodes\document\DocumentReadyStateManager.js:24:16) at new BrowserWindow (${PROJECT_ROOT}\node_modules\happy-dom\lib\window\BrowserWindow.js:545:9) at new Window (${PROJECT_ROOT}\node_modules\happy-dom\lib\window\Window.js:36:9)
The text was updated successfully, but these errors were encountered:
Also reproductible on bun 1.1.4 in wsl2
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When using
new Window()
in a Bun environment, the script crashTo Reproduce
Steps to reproduce the behavior:
happy-dom
version 14.5.1 or highernew Window()
bun ./index.js
Expected behavior
The program should run correctly
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
Additional context
The text was updated successfully, but these errors were encountered: