Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Exception section position and identifier #25

Closed

Description

@eholk

The proposal does not list a section id for the exception section. Based on this change to V8, I assume this should be 13?

It looks like the exception section must come before the code section, so sections no longer come strictly in order (modulo custom sections). How precisely should we specify the location of the exception section?

Activity

  1. titzer commented on Aug 16, 2017

    @titzer
    Contributor

    IMO the exception section should have a well-specified order, even though it might not match the ID. Current decoders were designed with this forward-looking assumption, since they simply do something like:

    if (section_code == kFirstCode) {
    readFirstSection();
    section_code = next_code();
    }
    if (section_code == kSecondCode) {
    readSecondSection();
    section_code = next_code();
    }
    ...

    The actual numerical values of the section codes were expected to get out of order.

  2. aheejin commented on Oct 20, 2019

    @aheejin
    Member

    Closed by #62 and #75.

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