-
Notifications
You must be signed in to change notification settings - Fork 6
Blog post for v0.21 #208
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
base: main
Are you sure you want to change the base?
Blog post for v0.21 #208
Conversation
blog/boa-release-21/index.md
Outdated
### Float16 support for TypedArrays, Dataview and Math built-ins | ||
|
||
This release adds support for `f16` types for the TypedArray, Dataview, and Math | ||
built-ins. | ||
|
||
```javascript | ||
const x = new Float16Array([37, 42.123456]); | ||
console.log(x[1]); // 42.125 | ||
``` | ||
|
||
### Error.isError | ||
|
||
This release adds support for `Error.isError`, which is accepted for ES2026. | ||
|
||
```javascript | ||
let check = Error.isError(new Error()); // returns true | ||
``` | ||
|
||
### Math.sumPrecise | ||
|
||
This release adds support for `Math.sumPrecise`, which is accepted for ES2026. | ||
|
||
We've opted for using the new [`xsum`](https://crates.io/crates/xsum) summation algorithm | ||
for the underlying implementation. | ||
|
||
```javascript | ||
let sum = Math.sumPrecise([1e20, 0.1, -1e20]); | ||
console.log(sum); // 0.1 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should potentially group any small spec additions into a separate section. It makes the post look a bit cleaner and avoids having too many header titles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the features into one section with sub headings. Let me know if you think the subheading should be removed as well.
Co-authored-by: Hans Larsen <[email protected]>
Co-authored-by: Hans Larsen <[email protected]>
1c3768d
to
378a295
Compare
Took a stab at putting together an initial blog post. Feel free to edit and make updates as you see fit :)
This does make an assumption that the
Math.sumPrecise
PR is merged before this upcoming release