Skip to content

WebAssembly global is not mentioned in documentation #23334

Description

@styfle
  • Version: 10.11.0
  • Platform: all
  • Subsystem: docs

It looks like the WebAssembly global is available but there is no mention in the docs of when this was introduced and which features are available.

Example usage: https://glot.io/snippets/f5j3smuum8

Should WebAssembly be added to the globals page or maybe even add a separate page?

Activity

  1. jasnell commented on Oct 8, 2018

    @jasnell
    Member

    I think listing it in globals.md is good for now. We should likely have a dedicated page in the docs for it eventually tho.

  2. added
    docIssues and PRs related to Node.js documentation.
    wasmIssues and PRs related to WebAssembly.
    on Oct 8, 2018
  3. Trott commented on Oct 8, 2018

    @Trott
    Member

    @nodejs/documentation

  4. devsnek commented on Oct 8, 2018

    @devsnek
    Member

    we should just link to the mdn docs for it from globals.md

  5. styfle commented on Oct 8, 2018

    @styfle
    SponsorMemberAuthor

    @devsnek Is the API 100% compatible? What about the streaming APIs such as WebAssembly.instantiateStreaming?

  6. thefourtheye commented on Oct 8, 2018

    @thefourtheye
    Contributor

    This is perhaps good-first-contribution worthy?

  7. devsnek commented on Oct 8, 2018

    @devsnek
    Member

    @styfle assuming we were to enable streaming compilation it would work. node and chrome use the same implementation from V8.

  8. styfle commented on Oct 8, 2018

    @styfle
    SponsorMemberAuthor

    @devsnek From a quick test (and from the sound of your comment) the streaming compilation is not ready so the docs should make this clear. If/when that feature is enabled, then it can be added to the docs and the version can reflect when that shipped.

    Speaking of which, at what version was the WebAssembly global added?

  9. Trott commented on Oct 8, 2018

    @Trott
    Member

    Speaking of which, at what version was the WebAssembly global added?

    @styfle A quick test suggests it was 8.0.0.

    $ node -v
    v7.10.1
    $ node -p 'typeof WebAssembly'
    undefined
    $ nvm use 8.0.0
    Now using node v8.0.0 (npm v5.0.2)
    $ node -p 'typeof WebAssembly'
    object
    $ 
  10. styfle commented on Oct 8, 2018

    @styfle
    SponsorMemberAuthor

    @Trott Nice! That matches the MDN compatibility table.
    https://developer.mozilla.org/en-US/docs/WebAssembly#Browser_compatibility

    I will create a PR to get this added to the globals and probably include a link to the MDN docs 👍

  11. styfle commented on Oct 8, 2018

    @styfle
    SponsorMemberAuthor

    I created PR #23339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.wasmIssues and PRs related to WebAssembly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions