Use stream in file read operation (#35969)

* use read_all_bytes in file read operation

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>

* add docs

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>

---------

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
Gregory Terzian 2025-03-16 18:37:07 +08:00 committed by GitHub
parent d8fc1d8bb8
commit 3ecd1c0699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 98 additions and 36 deletions

View file

@ -210,7 +210,8 @@ DOMInterfaces = {
},
'FileReader': {
'canGc': ['Abort'],
'canGc': ['Abort', 'ReadAsArrayBuffer', 'ReadAsDataURL', 'ReadAsText'],
'inRealms': ['ReadAsArrayBuffer', 'ReadAsDataURL', 'ReadAsText'],
},
'FileReaderSync': {