Skip to content

Conversation

@nevkontakte
Copy link
Member

NodeJS 12 has been end-of-life since 2022-04-30, so there's not much value in testing against it. 18 is the current oldest supported LTS version, so we use that in CI. I also had to make a few minor updates to the node_syscall extension to make sure it continues working.

 - Instead of breaking into ArrayBuffer underlying memory via a
   hard-coded offset, we allocate a data buffer in the arena and copy
   data out using public API.
 - Update module initializer function to not generate any complier
   warnings.
 - Fix a bug in the arena which returned an invalid pointer. I have no
   idea how this worked before. `allocs_.end()` returned an iterator
   pointing to *after* the last element, which is invalid memory. So
   we've been previous copying data who knows where and nobody noticed.
@nevkontakte nevkontakte requested a review from flimzy July 20, 2024 19:14
NodeJS 12 has been end-of-life since 2022-04-30, and 18 is the current
oldest supported LTS version, which will be supported until 2025-04-30.

I also update npm dependencies to the modern versions.
The example relies on the local HTTP server, which is not fully
supported by GopherJS. Node 18 provides global Fetch API, so the
net/http package no longer falls back onto fake networking
automatically.
@nevkontakte nevkontakte merged commit 33199c5 into gopherjs:master Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants