-
Notifications
You must be signed in to change notification settings - Fork 38
Add Blob builtin implementation #169
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
faa8e6e
Add Blob builtin implementation
andreiltd 7016066
Check the response status when fetching the file.
andreiltd 44a4036
Add blob test expectation files
andreiltd 8270c64
Pass more tests.
andreiltd 1024ec5
Pass more tests.
andreiltd 48df322
Fix slice tests
andreiltd 90d68d4
Fix default options tests
andreiltd c64f6a1
Fix options evaluation order tests
andreiltd 873c9ef
Fix calling ToString on blob parts
andreiltd 09c8a17
Simplify appending string types
andreiltd 715d9e0
Do not overwrite active exceptions in constructor
andreiltd 5bc873f
Use UTF-16 endcoder from rust-encoding for text method
andreiltd 9a7798a
Fix release build
andreiltd ce08991
Hack Blob#stream support.
andreiltd 3b054c5
Merge remote-tracking branch 'upstream/main' into blob-builtin
andreiltd 90bb1ad
Close the readable stream after we mark id done
andreiltd 3eb21b8
Modify Blob stream to read data in chunks
andreiltd 18e03f8
Do not call cancel on closing stream
andreiltd 3f3c0d9
Refactor stream reader methods
andreiltd fc9131d
Ensure separate stream reader states
andreiltd 421b3a6
Update the constructor length
andreiltd ecfb0c4
Fix initialization with a Uint8Array object
andreiltd 996d85d
Implement native line endings conversion
andreiltd 5a56037
Apply code review suggestions
andreiltd 504fde6
Catch readAll exception in the blob test
andreiltd a0cf051
Print assertion error
andreiltd 0c349f0
Add TraceableBuiltinImpl class
andreiltd 417ff38
Use GCHashTable for storing the readers
andreiltd 7e3be60
Tweak a blob test
andreiltd 52bd455
Print diff content on test failure
andreiltd 1358e94
Wait for interval to finish in the blob test.
andreiltd 924edb9
Address code review comments.
andreiltd 745f80c
Store ReadableDefaultStream in NativeStream slot
andreiltd 518816a
Initialize underlying source slots before creating a default stream
andreiltd e414aa0
Check if readable is object in transform-stream
andreiltd 16aa50d
Fix slot getters
andreiltd d755a52
Add comment explaining order of initialization in native stream source
andreiltd bd82b0e
Make slot getters to use JSObject instead of HandleObject
andreiltd 8a18cc5
Runt clang-format
andreiltd 2d48a32
Enable stream assert for testing
andreiltd 4f6c47b
Remove default_stream method from NativeStreamSource
andreiltd ca68060
Simplify blob_size method
andreiltd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.