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.

Assertion failure when mistakenly passing a function to Repository.getCommit() #1070

Closed

Description

@novalis

I accidentally did repo.getCommit(something.id) instead of repo.getCommit(something.id()). I got the following crash, which I had to debug by bisecting my code:

node: ../node_modules/nan/nan_object_wrap.h:33: static T* Nan::ObjectWrap::Unwrap(v8::Localv8::Object) [with T = GitOid]: Assertion `object->InternalFieldCount() > 0' failed.
Aborted

It would be better to catch this error somewhere that a reasonable stack trace can be provided.

Activity

  1. johnhaley81 commented on Jan 27, 2017

    @johnhaley81
    Collaborator

    Yep, you're right. This is related to #1127 so I'm going to close this out and we can continue the conversation in that issue.

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