tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1903219.js (319B)


      1 // Check if we can expose builtin function.
      2 
      3 var ins = wasmEvalText(`
      4 (module
      5  (import "wasm:js-string" "charCodeAt"
      6    (func $charCodeAt (param externref i32) (result i32)))
      7  (table (export "t") 1 1 funcref ref.func $charCodeAt)
      8 )
      9 `, {}, { builtins: ["js-string"] });
     10 
     11 assertEq(ins.exports.t.get(0)("abc", 1), 98);