Skip to content

Conversation

@jtdowney
Copy link

The latest stdlib reworked Dicts quite a bit, and the JS FFI in shellout was relying on internals to function. This PR updates the JS FFI to use the API's documented in the externals guide. The error I was getting was:

An unexpected error occurred:

  //js(TypeError: map.get is not a function)

Update JavaScript FFI to use new export naming conventions and fix issue
with accessing Dict in the latest stdlib.
@tynanbe
Copy link
Owner

tynanbe commented Jan 26, 2026

Thanks for your contribution!

I'll look further at this soon, hopefully. I think we'll need to update the stdlib dep req too.

@jtdowney
Copy link
Author

The dict.get was available in the stdlib version used; I ran this code on the pinned deps. The rest of the changes will require updating the gleam version in CI to something more recent.

@tynanbe
Copy link
Owner

tynanbe commented Jan 26, 2026

Oh right, great point. Thanks.

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