Skip to content
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
This repository was archived by the owner on Dec 2, 2026. It is now read-only.

Tighter type checking on passed in nodegit methods  #1127

Open

Description

@maxkorp

As seen here: #1120

Generated code is as such

NAN_METHOD(GitTag::List)
{

  if (info.Length() == 0 || !info[0]->IsObject()) {
    return Nan::ThrowError("Repository repo is required.");
  }

Where info[0] is meant to be a GitRepo object. Templates need to be fixed up to support this.

Activity

  1. rcjsuen commented on Jan 7, 2017

    @rcjsuen
    Member

    Can close #1070 and #1183 as duplicates of this I think.

  2. johnhaley81 commented on Jan 27, 2017

    @johnhaley81
    Collaborator

    @rcjsuen thanks. Closed those other issues in favor of this one. Updates will be posted here.

  3. rcjsuen commented on Jan 30, 2017

    @rcjsuen
    Member

    I think we want to use the HasInstance(*) function of a v8 FunctionTemplate though I'm not really quite sure how we can randomly access a prototype constructor's FunctionTemplate instance. At least, I think that's what we would need to implement this...? o_o

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