Skip to content

Commit 35878d7

Browse files
committed
Small adjustments + add backtrace section with gif
1 parent 673ac32 commit 35878d7

File tree

3 files changed

+52
-9
lines changed

3 files changed

+52
-9
lines changed
50.3 KB
Loading

blog/boa-release-21.md renamed to blog/boa-release-21/index.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,24 @@ cargo add temporal_rs
5555

5656
#### Special thanks
5757

58-
Special thanks to all the student's from University of Bergen as well as
59-
Shane Carr ([@sffc](https://github.com/@sffc)) and Manish Goregaokar
60-
([@manishearth](https://github.com/@manishearth)) from ICU4X for their
61-
contributions and help with `temporal_rs`.
58+
Special thanks to all the student's from University of Bergen who helped contribute to
59+
`temporal_rs` and Boa, as well as Shane Carr ([@sffc](https://github.com/@sffc)) and
60+
Manish Goregaokar ([@manishearth](https://github.com/@manishearth)) for their contributions
61+
and help with `temporal_rs`.
62+
63+
### Span nodes and error backtraces
64+
65+
We also closed an outstanding issue of supporting span nodes in our parser and AST. This
66+
allowed us to implement backtraces to provide better debugging information when using
67+
Boa.
68+
69+
![backtrace-example](./img/backtrace.gif)
6270

6371
### New Set methods
6472

65-
Boa now supports the new set methods added in ES2025.
73+
This release adds support for the new set methods added in ES2025.
6674

67-
These new methods are:
75+
The new methods are:
6876

6977
- `Set.prototype.intersection(other)`
7078
- `Set.prototype.union(other)`
@@ -79,7 +87,7 @@ their work on this feature.
7987

8088
### Float16 support for TypedArrays, Dataview and Math built-ins
8189

82-
Boa now supports `f16` types for the TypedArray, Dataview, and Math
90+
This release adds support for `f16` types for the TypedArray, Dataview, and Math
8391
built-ins.
8492

8593
```javascript
@@ -89,15 +97,18 @@ console.log(x[1]); // 42
8997

9098
### Error.isError
9199

92-
Boa now supports `Error.isError`, which is accepted for ES2026.
100+
This release adds support for `Error.isError`, which is accepted for ES2026.
93101

94102
```javascript
95103
let check = Error.isError(new Error()); // returns true
96104
```
97105

98106
### Math.sumPrecise
99107

100-
Boa now supports `Math.sumPrecise`, which is accepted for ES2026.
108+
This release adds support for `Math.sumPrecise`, which is accepted for ES2026.
109+
110+
We've opted for using the new [`xsum`](https://crates.io/crates/xsum) summation algorithm
111+
for the underlying implementation.
101112

102113
```javascript
103114
let sum = Math.sumPrecise([1.0, 2.5]);
@@ -130,6 +141,8 @@ against the Web Platform Tests (WPT).
130141
With this release, Boa's virtual machine (VM) moved from a stack based
131142
VM to a register based VM.
132143

144+
TODO: Potentially add more here
145+
133146
## New Contributors
134147

135148
TODO
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Below is a VHS tape file
2+
Output backtrace.gif
3+
4+
# Setup env
5+
Hide
6+
7+
Set TypingSpeed 50ms
8+
Set Theme "GruvboxDark"
9+
10+
# boa_cli needs to be installed for the tape to run.
11+
Require boa
12+
13+
Show
14+
15+
Type@100ms `echo "const oops = () => { throw new Error() }; oops();" > yikes.js `
16+
17+
Enter
18+
19+
Type@100ms "boa yikes.js"
20+
21+
Enter
22+
23+
Sleep 4s
24+
25+
Hide
26+
27+
Type "rm yikes.js"
28+
29+
Enter
30+

0 commit comments

Comments
 (0)