Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 28, 2023

Followup to #19064

@sbc100 sbc100 requested review from juj and tlively March 28, 2023 20:40
// Allocate heap space for a JS string, and write it there.
// It is the responsibility of the caller to free() that memory.
$allocateUTF8: function(str) {
$stringToNewUTF8: function(str) {
Copy link
Member

Choose a reason for hiding this comment

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

It would probably be good to collect the contents of runtime_strings.js (including the accompanying stringToUTF8) here as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that is part of our overall goal of moving things from runtime to library functions..

@sbc100 sbc100 merged commit 4e15675 into main Mar 29, 2023
@sbc100 sbc100 deleted the deprecate_allocateUTF8 branch March 29, 2023 16:48
sbc100 added a commit that referenced this pull request Mar 29, 2023
The old name is still available as an alias in library_legacy.js.

Followup to #19089
RReverser pushed a commit that referenced this pull request Mar 29, 2023
@juj
Copy link
Collaborator

juj commented Mar 30, 2023

Thanks, looks good!

sbc100 added a commit that referenced this pull request Mar 30, 2023
The old name is still available as an alias in library_legacy.js.

Followup to #19089
sbc100 added a commit that referenced this pull request Mar 30, 2023
The old name is still available as an alias in library_legacy.js.

Followup to #19089
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.

4 participants