Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

[Converge] child_process argument type checking #22

Closed

Description

@jasnell

These commits add argument type checking to methods within child_process. This needs to be reconciled with the current io.js behavior. The change introduces a new throw so there's a potential API compatibility issue.
/cc @trevnorris

Activity

  1. sam-github commented on May 21, 2015

    @sam-github
    Contributor

    @piscisaureus I think these are the commits you said you didn't bring over. My primary involvement in this was to make the code actually match the docs in terms of what args were or were not optional. But that fell into a can of worms because some vocal users wanted very specific type checking on the args. Which isn't a bad thing, but with four args, most optional, it gets a bit hairy. I leave it to you all to decide what to do about this.

    And note that the originally claimed "API incompatiblity" was a LACK of a throw...

  2. sam-github commented on May 21, 2015

    @sam-github
    Contributor

    I think at least the tests should be ported over, since they demonstrate the very wide variety of calling conventions that are possible... what the correct behaviour should be for each one can then be discussed more readily.

  3. jasnell commented on May 22, 2015

    @jasnell
    MemberAuthor

    @nodejs/tsc ... this may be one we need broader review on.

  4. bnoordhuis commented on May 27, 2015

    @bnoordhuis
    Member

    The changes look reasonable to me. If one of you turns this into a PR and cc's me, I'll sign off on it.

  5. jasnell commented on May 27, 2015

    @jasnell
    MemberAuthor

    I'll be working on doing so

  6. self-assigned this
    on May 27, 2015
  7. rvagg commented on Aug 24, 2015

    @rvagg
    Member

    now active @ nodejs/node#2515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions