Skip to content

Conversation

@rvanasa
Copy link
Contributor

@rvanasa rvanasa commented Mar 13, 2023

This PR adapts the logic from this WASI polyfill file for a headless Node.js environment.

Progress:

  • Refactor to TypeScript
  • Decouple Wasm functionality from user interface
  • Expose hexdump() and show() functions
  • Allow custom handling of debug_print output
  • Run WASI modules from a file for quick testing (creating tests/wasm/Debug.test.wasm will activate another unit test)

Future work:

  • Source maps?
  • JS return value?
  • Breakpoints?
  • Stack inspection?

@github-actions
Copy link

github-actions bot commented Mar 13, 2023

size-limit report 📦

Path Size
lib/index.js 15.3 KB (+13.05% 🔺)
packages/latest/base.json 87.82 KB (0%)
versions/latest/moc.min.js 487.72 KB (0%)
versions/latest/moc_interpreter.min.js 280.9 KB (0%)
versions/latest/didc.min.js 60.46 KB (0%)

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.

1 participant