Skip to content

Mixed function/class inheritance broken pre v7.2? #23960

Closed

Description

@SimonSchick
  • Version: < 7.2
  • Platform: Windows, OSX, also whatever Travis is using.
  • Subsystem: Ubuntu Subsytem in windows

A change I made in the sequelize package here: https://github.com/sequelize/sequelize/pull/10091/files#diff-696825d45557dfe5b68972fd6f69587bL15 uncovered a weird problem.
When I changed this pre-es6 class to a es6 class the build would start to fail on node v6 but not on v8, I used a binary search and identified v7.2 as the culprit, this specific release contains a v8 update which likely fixes the issue.

The issue itself is that an instance check appears to fail where it shouldn't.

Activity

  1. SimonSchick commented on Oct 29, 2018

    @SimonSchick
    ContributorAuthor

    After some more digging it seems that this bugfix in v8(the js engine) never made it into node v6 as a bugfix?
    v8/v8@58d6953

  2. added
    v8 engine
    on Oct 29, 2018
  3. addaleax commented on Oct 29, 2018

    @addaleax
    Member

    So … v6.x is currently in maintenance mode, meaning:

    Once a release moves into Maintenance mode, only critical bugs, critical security fixes, and documentation updates will be permitted.

    I’m not sure this falls under that category, especially since it seems at a first glance like there is a non-zero risk of breaking existing code.

  4. Trott commented on Nov 4, 2018

    @Trott
    Member

    @SimonSchick You have a workaround and we're OK to close this? (Sorry for the inconvenience.)

  5. SimonSchick commented on Nov 4, 2018

    @SimonSchick
    ContributorAuthor

    For now I will just avoid mixing classes and functions with prototypes, you should probably add a note to the docs tho.

  6. Trott commented on Nov 24, 2018

    @Trott
    Member

    @nodejs/documentation Can we document this in v6.x?

  7. apapirovski commented on Nov 29, 2018

    @apapirovski
    Contributor

    I'm going to close this out because I don't see this actually happening and I'm really not sure where we would possibly document this.

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

    v8 engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions