Skip to content

Editorial: try to clarify the JS API#212

Merged
conrad-watt merged 1 commit intoWebAssembly:upstream-rebuildfrom
Ms2ger:tidy
Sep 28, 2023
Merged

Editorial: try to clarify the JS API#212
conrad-watt merged 1 commit intoWebAssembly:upstream-rebuildfrom
Ms2ger:tidy

Conversation

@Ms2ger
Copy link
Copy Markdown
Contributor

@Ms2ger Ms2ger commented Sep 12, 2023

No description provided.

Comment thread document/js-api/index.bs
1. Let |newBuffer| be the result of [=create a fixed length memory buffer|creating a fixed length memory buffer=] from |memaddr|.
1. Set |memory|.\[[BufferObject]] to |newBuffer|.
1. Otherwise,
1. Issue: Is this safe for a SharedArrayBuffer?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is a good point. It might not be right to operationally get the "length of |block|" in the SAB case this way.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently super jetlagged from Wasmcon but I'll try to think more clearly about the right way to do this SAB case.

Copy link
Copy Markdown
Collaborator

@conrad-watt conrad-watt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I'll fix the SAB size check issue I commented on above in a follow-up

@conrad-watt conrad-watt merged commit 8deee83 into WebAssembly:upstream-rebuild Sep 28, 2023
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