Skip to content

Fix Emscripten warnings by removing deprecated writeAsciiToMemory#2724

Merged
sbc100 merged 8 commits intoWebAssembly:mainfrom
kevmoo:fix_make_demo
Mar 17, 2026
Merged

Fix Emscripten warnings by removing deprecated writeAsciiToMemory#2724
sbc100 merged 8 commits intoWebAssembly:mainfrom
kevmoo:fix_make_demo

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Mar 17, 2026

The Emscripten function writeAsciiToMemory has been deprecated and logs warnings
during the build process.

  • Replaced usages of writeAsciiToMemory in wabt.post.js with TextEncoder
  • Fixed a 1-byte buffer overflow in allocateCString
  • Removed writeAsciiToMemory from CMake EXPORTED_RUNTIME_METHODS

The Emscripten function writeAsciiToMemory has been deprecated and logs warnings
during the build process.

- Replaced usages of writeAsciiToMemory in wabt.post.js with TextEncoder
- Fixed a 1-byte buffer overflow in allocateCString
- Removed writeAsciiToMemory from CMake EXPORTED_RUNTIME_METHODS
@kevmoo
Copy link
Contributor Author

kevmoo commented Mar 17, 2026

PTAL

function parseWat(filename, buffer, options) {
let errors = new Errors('text');
const lexer = new Lexer(filename, buffer, errors);
errors.lexer = lexer;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was just silly!

Copy link
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

Nice!

@sbc100 sbc100 enabled auto-merge (squash) March 17, 2026 22:53
@sbc100 sbc100 merged commit 10dcc58 into WebAssembly:main Mar 17, 2026
17 checks passed
@kevmoo kevmoo deleted the fix_make_demo branch March 17, 2026 23:37
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