Skip to content

Why did startStackFunction get renamed to startStackFn from 8.x to 10.x #27671

@Raynos

Description

@Raynos

In assert.AssertionError, for some reason options.startStackFunction got renamed to options.startStackFn from v8.x to v10.x

This means you have to do var e = new AssertionError({ startStackFn: fn, startStackFunction: fn }) to have code that works across both versions of nodejs.

This seems like an unnecessary breaking change :( is there no policy or code review for API stability ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertIssues and PRs related to the assert subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions