-
-
Notifications
You must be signed in to change notification settings - Fork 407
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 by Bors] - Added fallible allocation to data blocks #1728
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1728 +/- ##
==========================================
+ Coverage 53.28% 53.33% +0.04%
==========================================
Files 200 200
Lines 16982 16983 +1
==========================================
+ Hits 9049 9058 +9
+ Misses 7933 7925 -8
Continue to review full report at Codecov.
|
Test262 conformance changesNon-VM implementation
VM implementation
|
bors r+ |
👎 Rejected by too few approved reviews |
bors r+ |
This Pull Request uses the new fallible allocation API in Rust 1.57 to follow the JavaScript specification for data blocks: https://tc39.es/ecma262/#sec-createbytedatablock It changes the following: - Creating a new DataBlock for an ArrayBuffer will no longer fail with an arbitrary byte length, it will now actually call the allocator and try to reserve the needed space, and fail if it can't. - Added sunny and rainy day unit tests that check if the API works as expected. - Bumped the minimum Rust version to Rust 1.57 for the Boa crate. - Removed the unused `DataBlock` implementation in IntegerIndexedObjects.
Pull request successfully merged into main. Build succeeded: |
This Pull Request uses the new fallible allocation API in Rust 1.57 to follow the JavaScript specification for data blocks: https://tc39.es/ecma262/#sec-createbytedatablock
It changes the following:
DataBlock
implementation in IntegerIndexedObjects.