镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

assert: RangeError: Maximum call stack size exceeded is still present #13314

Description

@rmdm
  • Version: tested on v6.9.1 and v8.0.0-pre, but it seems like all versions are affected.
  • Platform: Linux 3.16.0-4-amd64 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
  • Subsystem: assert

The following code

const a = {}
a.ref = a

const b = {}
b.ref = b

const c = { ref: b }

assert.deepEqual(a, c)

ends up with RangeError: Maximum call stack size exceeded and it seems like changes for #6416 didn't fixed that error entirely.

I'm going to provide the fix in a PR soon.

Activity

  1. added
    confirmed-bugIssues and PRs for confirmed bugs.
    assertIssues and PRs related to the assert subsystem.
    on May 30, 2017
  2. wuliupo commented on Jun 7, 2017

    @wuliupo
    var a = [];
    a[0] = a;
    JSON.stringify(a);
    // Uncaught TypeError: Converting circular structure to JSON
  3. BridgeAR commented on Jun 7, 2017

    @BridgeAR
    Member

    @wuliupo you can't stringify a circular structure. That's by spec and it is completely independent from the issue about the range error.

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

    assertIssues and PRs related to the assert subsystem.confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions