mirror of
https://github.com/remko/waforth
synced 2025-02-05 20:46:22 +01:00
Add documentation comment to WAForth#read.
This commit is contained in:
parent
8f37f588c1
commit
9e30411d1b
1 changed files with 3 additions and 0 deletions
|
@ -190,6 +190,9 @@ class WAForth {
|
|||
memory = this.core.exports.memory as WebAssembly.Memory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read data `s` into the input buffer without interpreting it.
|
||||
*/
|
||||
read(s: string) {
|
||||
const data = new TextEncoder().encode(s);
|
||||
for (let i = data.length - 1; i >= 0; --i) {
|
||||
|
|
Loading…
Add table
Reference in a new issue