Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix label 'for' attributes to match input 'id's in demo (#2499) | Leo Toneff | 2024-10-30 | 2 | -2/+2 |
| | |||||
* | Enable features in libwabt.js by default (#2109) | Marcus Better | 2022-12-27 | 5 | -56/+43 |
| | | | | | | | | | | This applies the same defaults for features in the JavaScript-compiled version as the native tools. Without this change, enabling only the "reference_types" feature did not work, as it got turned off due to the dependency on "bulk_memory", which is counter-intuitive (see Features::UpdateDependencies()). Additionally, exposes all the features and their default setting in JavaScript. | ||||
* | Typo in previous PR causing unbalanced braces (#2106) | Thomas Tay | 2022-12-19 | 1 | -1/+1 |
| | | | | Sorry, fixed now. Didn't balance my braces. Thats what you get for editing in the Github editor, opened this file in vscode with the fix now, and no problems reported | ||||
* | Base 64 output is incorrect (#2103) | Thomas Tay | 2022-12-19 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | For simple, it decodes to: MCw5NywxMTUsMTA5LDEsMCwwLDAsMSw2LDEsOTYsMSwxMjQsMSwxMjQsMywyLDEsMCw3LDcsMSwzLDEwMiw5Nyw5OSwwLDAsMTAsNDYsMSw0NCwwLDMyLDAsNjgsMCwwLDAsMCwwLDAsMjQwLDYzLDk5LDQsMTI0LDY4LDAsMCwwLDAsMCwwLDI0MCw2Myw1LDMyLDAsMzIsMCw2OCwwLDAsMCwwLDAsMCwyNDAsNjMsMTYxLDE2LDAsMTYyLDExLDExLDAsMTgsNCwxMTAsOTcsMTA5LDEwMSwxLDYsMSwwLDMsMTAyLDk3LDk5LDIsMywxLDAsMA== which is base64 for the literal string: '0,97,115,109,1,0,0,0,1,7,1,96,2,127,127,1,127,3,2,1,0,7,10,1,6,97,100,100,84,119,111,0,0,10,9,1,7,0,32,0,32,1,106,11,0,10,4,110,97,109,101,2,3,1,0,0' This is the Uint8 array encoded as a string, which is not what we want! We want the numbers as bytes encoded in base64. This answer changes the base64 to: AGFzbQEAAAABBgFgAXwBfAMCAQAHBwEDZmFjAAAKLgEsACAARAAAAAAAAPA/YwR8RAAAAAAAAPA/BSAAIABEAAAAAAAA8D+hEACiCwsAEgRuYW1lAQYBAANmYWMCAwEAAA== Which decodes properly. In Node: ``` > Buffer.from("AGFzbQEAAAABBgFgAXwBfAMCAQAHBwEDZmFjAAAKLgEsACAARAAAAAAAAPA/YwR8RAAAAAAAAPA/BSAAIABEAAAAAAAA8D+hEACiCwsAEgRuYW1lAQYBAANmYWMCAwEAAA==", 'base64') <Buffer 00 61 73 6d 01 00 00 00 01 06 01 60 01 7c 01 7c 03 02 01 00 07 07 01 03 66 61 63 00 00 0a 2e 01 2c 00 20 00 44 00 00 00 00 00 00 f0 3f 63 04 7c 44 00 ... 47 more bytes> ``` | ||||
* | WastLexer: log lexing errors directly (#2013) | Keith Winstein | 2022-10-03 | 1 | -36/+14 |
| | | | | | * Log all lexing errors in WastLexer (rather than via parser) * Update docs/demo/libwabt.js | ||||
* | Update libwabt.js (#1907) | Ben Smith | 2022-04-28 | 1 | -9/+13 |
| | |||||
* | Add base64 encoding support to wat2wasm demo (#1903) | Zoltan Herczeg | 2022-04-25 | 2 | -4/+33 |
| | | | | | | A new button is added for base64 encoding of the wasm binary. This allows getting the binary without downloading it. Co-authored-by: Zoltan Herczeg <hzmester@freemail.hu> | ||||
* | Enable mutli-value checkbox in wat2wasm demo html (#1657) | UltimatePro-Grammer | 2022-03-04 | 1 | -1/+1 |
| | |||||
* | Finish instruction renaming (#1792) | Heejin Ahn | 2021-12-20 | 2 | -2/+2 |
| | | | | | | | | | | | | | This finishes #985. This - replaces the old names in the tests with the new names - drops support for the deprecated names - renames test files to match new instruction names I don't think dropping support for the old names will be a problem at this point. #985 says the old names are supported for convenience but we should remove those too at some point; that "some point" may have well arrived given that three years have passed. The lists of names updated are in #933, #1564, WebAssembly/spec#720. | ||||
* | feat: 🎸 drag file to editor trigger recompile (#1598) | IWANABETHATGUY | 2021-02-23 | 1 | -4/+30 |
| | | | | | | | | | * feat: 🎸 drag file to editor trigger recompile * fix: 🐛 code style, fix reviewd problem * style: 💄 semicolon ✅ Closes: g | ||||
* | Fix emscripten build; rebuild libwabt.js (#1583) | Ben Smith | 2020-12-04 | 1 | -18/+17 |
| | | | Not sure how this line got removed... | ||||
* | Update libwabt.js; fix some runtime issues (#1468) | Ben Smith | 2020-06-18 | 1 | -11/+11 |
| | | | | | | | libwabt.js is meant to be included in multiple environments (web, node.js, etc.) so it shouldn't be using NODERAWFS. A recent change to the build system include `-s NODERAWFS` for all link steps, but those are only needed for the wabt executables (e.g. wasm2wast.js). | ||||
* | Update emscripten build after SIMD change | Ben Smith | 2020-05-05 | 1 | -10/+10 |
| | |||||
* | Update JS demos (#1398) | Ben Smith | 2020-04-27 | 3 | -32/+93 |
| | | | | | | * Recompile libwabt.js using latest emscripten * Add features checkbox for wasm2wat (like wat2wasm) * Remove call to `_wabt_resolve_names_module`, since that's always done now when parsing text | ||||
* | Move documentation to docs/ directory | Ben Smith | 2020-01-17 | 18 | -0/+11737 |
It's easier to update than gh-pages |