Skip to content

Commit

Permalink
Exhume the lede for SES 1.8 and 1.9 release notes (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored Oct 17, 2024
2 parents 128cd71 + a35db84 commit 0100d5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/content/docs/blog/ses-1.8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,21 @@ However, in the few cases where a dependency on versions 0.10.5 to 0.13.7 of
misalignment of the global objects the runtime introduces and the environment
that Hardened JavaScript expects from the base language.

With SES 1.8.0, `lockdown` accepts a new option
`legacyRegeneratorRuntimeTaming: 'unsafe-ignore'` that repairs the intrinsics
shared by all compartments so that `lockdown` will allow them.
This remediation is not strictly safe because it converts
`Iterator.prototype[Symbol.iterator]` to a getter and setter, such that all
assignments to it are ignored.
This could cause code to procede on false assumption that it successfully
overwrote the `Iterator.prototype[Symbol.iterator]` instead of throwing an
error.

### Error Trapping: Report

Starting with SES 1.8.0, the `'report'` mode for `errorTrapping` will write
errors to standard error with the new `SES_UNCAUGHT_EXCEPTION: ` prefix.
Starting with SES 1.8.0, the `'report'` mode for the `errorTrapping` option to
`lockdown` will write errors to standard error with the new
`"SES_UNCAUGHT_EXCEPTION: "` prefix.
The `'report'` mode is sometimes implied by `'platform'`, `'exit'`, or `'abort'`.
This is intended to give valuable context to users of the system, especially
when an uncaught exception is not an `Error` object, and therefore its origin
Expand Down
5 changes: 5 additions & 0 deletions src/content/docs/blog/ses-1.9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ a global `ModuleSource` in the shared intrinsics.

### Immutable ArrayBuffer

JavaScript strings are immutable, but JavaScript lacks an immutable analog for
ArrayBuffer.
So, one can have a string of text and send it without making a copy to defend
its invariance, but not a string of bytes.

Agoric's [Mark Miller](https://agoric.com/team/)
[presented](https://www.youtube.com/watch?v=CP_5Yo9h84k) a
[proposal](https://github.com/tc39/proposal-immutable-arraybuffer) at the
Expand Down

0 comments on commit 0100d5c

Please sign in to comment.