Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. edggy
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by edggy

    • Unsolved WebAssembly Setup Issue (LinkError)
      Help • • edggy

      2
      2
      Posts
      5752
      Views

      I also get this issue when I run the same example code. I have emcc v1.38.12 I was able to look at the required imports of the wasm module to see what was missing: const wasmModule = new WebAssembly.Module(bytecode); console.log("imports", WebAssembly.Module.imports(wasmModule)); This output: imports [ { module: 'env', name: 'table', kind: 'table' }, { module: 'env', name: 'memoryBase', kind: 'global' }, { module: 'env', name: 'tableBase', kind: 'global' }, { module: 'env', name: 'abort', kind: 'function' } ] So perhaps it needs an abort function to be defined. I added a new member to imports.env: abort: _ => { throw new Error('abort');}, I think that needed to be done, but it wasn't the problem, it turns out that WebAssemblyTable needs to have initial set to 2 instead of 0. table: new WebAssembly.Table({ initial: 2, element: 'anyfunc' })
    • RoomPosition.findClosestByPath() error
      Technical Issues and Bugs • • edggy

      1
      1
      Posts
      2858
      Views

      No one has replied

    • Committing Memory using direct API access
      Feature Requests • • edggy

      5
      5
      Posts
      6848
      Views

      You can always reset your own memory.  You just create a new branch that only has code in it to wipe the memory, switch to that branch, then switch back.
    • RawMemory bug
      Technical Issues and Bugs • • edggy

      3
      3
      Posts
      4117
      Views

      Thanks for reporting, fixed.