Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

[js-api] ToWebAssemblyValue signature change #51

Closed

Description

@Ms2ger

In #8, ToWebAssemblyValue gained an additional error argument; the current spec only passes it in a single call site. It seems like it had a caller that passed LinkError at the time. Presumably all callers should pass a value here; otherwise the argument should be marked as optional.

Alternatively, the algorithm should always throw a TypeError; that's what it already throws when ToInt32 and friends fail.

Activity

  1. added a commit that references this issue on Feb 11, 2020
    53d2597
  2. ioannad commented on Feb 17, 2020

    @ioannad

    I also think that the 3rd (error) argument of ToWebAssemblyValue can be safely removed, since there is no LinkError to propagate anymore. If such an error propagation is needed in the future, I would also go for an optional third argument.

  3. added a commit that references this issue on Feb 18, 2020
    cca5fdf
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions