Coder Social home page Coder Social logo

wasm-tools's Introduction

Wasm Moddable tools issue

A video of the issue and work-around is available here.

Steps to reproduce

  1. Download the sample-mod folder from this repository.

  2. Open the JavaScript console in Chrome and go to https://moddable-wasm-tools.netlify.com/.

  3. Click the Choose Files button in the top left corner, select the sample-mod folder from this repository, and click Upload.

  4. The Wasm Moddable tools run in a worker and throw the following error:

    Uncaught (in promise) RangeError: Maximum call stack size exceeded

Note: the issue does not occur in Firefox or Safari

Instructions for running locally

  1. Clone this repository, navigate to the directory, and start a web server:

    git clone https://github.com/lprader/wasm-tools.git
    cd wasm-tools
    python -m SimpleHTTPServer 8000
    
  2. Open the JavaScript console in Chrome and go to http://localhost:8000.

  3. Click the Choose Files button in the top left corner, select the sample-mod folder from this repository, and click Upload.

  4. The Wasm Moddable tools run in a worker and throw the following error:

    Uncaught (in promise) RangeError: Maximum call stack size exceeded

Note: the issue does not occur in Firefox or Safari

Building the tools

To build the Wasm Moddable tools (tools.wasm and tools.js) yourself, you'll need to install Emscripten and the Moddable SDK. Full instructions are available in this repository.

The version included in this repository was built with Emscripten version 1.38.31 and the Moddable SDK commit 6c524c2f3f9187943346cd869d1b284cbf75b7de. Note that these are not the most current versions of Emscripten or the Moddable SDK. The problem is reproducible using other versions. Also note that LLVM-based Wasm tools are not yet able to build XS.

wasm-tools's People

Contributors

lprader avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.