- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
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
FileReader never throws errors #1565
Labels
bug
Something isn't working
Comments
btea
added a commit
to btea/happy-dom
that referenced
this issue
Nov 2, 2024
Loading
Loading status checks…
btea
added a commit
to btea/happy-dom
that referenced
this issue
Nov 2, 2024
capricorn86
added a commit
to btea/happy-dom
that referenced
this issue
Nov 6, 2024
…tionObserver can then detect the origin of the error
capricorn86
added a commit
to btea/happy-dom
that referenced
this issue
Nov 6, 2024
capricorn86
added a commit
that referenced
this issue
Nov 6, 2024
Loading
Loading status checks…
…sArrayBuffer, FileReader.readAsBinaryString, FileReader.readAsDataURL and FileReader.readAsText (#1575) * fix: [#1565] Strictly check the type of `blob` parameters * chore: [#1565] Uses TypeError from Window, as BrowserExceptionObserver can then detect the origin of the error * chore: [#1565] Fixes linting error --------- Co-authored-by: David Ortner <david@ortner.se>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The following test failed:
Expected behavior
To throw an error. For example, Mozilla throws the error:
Uncaught TypeError: FileReader.readAsDataURL: Argument 1 does not implement interface Blob.
Screenshots
Device:
Additional context
Vitest tests.
The test provided passes on
jsdom
environmentThe text was updated successfully, but these errors were encountered: