Giter Club home page Giter Club logo

Comments (3)

rossberg avatar rossberg commented on August 12, 2024 1

Well, strictly speaking, the spec requires a data count section iff there is at least one occurrence of a data index in the program, which is the case in the first example. But that also has no data segment, hence it would be invalid either way. In practical terms, it doesn't really matter what a tool does in the case of invalid input, so I'm not sure I would necessarily count it as a bug.

from spec.

rossberg avatar rossberg commented on August 12, 2024

Hm, I'm confused, can you elaborate what is inconsistent? (Note that the text format has no explicit representation of the data count section, it is implied when there is a non-zero number of data segments.)

from spec.

r1ru avatar r1ru commented on August 12, 2024

Okay, then this is my mistake.
I thoght it is inconsistent because when I input the above memory_init.wast into wast2json, it outputs wasm binaries without the data count section. Probably this is a bug of wast2json. Sorry.

from spec.

Related Issues (20)

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.