This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Firefox or other browsers that don't provide WebAssembly.Function APIs, | |
// this polyfill, albeit async, can be used as a substitute. | |
// | |
// Using WASM, this polyfill is accepted by WebAssembly.Tables, and can be inserted | |
// into them without failure | |
if (!WebAssembly.Function) { | |
const vu32 = (x) => { | |
let out = []; | |
do { | |
let byte = x & 0x7F; |