Skip to content

ObjectWrap->handle_ private in node master #177

Closed
@feichh

Description

@feichh

Hi,
I'm not a very experienced C++ developer, but I am trying to compile node-sqlite3 against the current node master.
I noticed that nodejs/node-v0.x-archive@110a9cd made ObjectWrap->handle_ private and replaced it with two methods handle() and handle(Isolate) ?

  • v8::Persistent no longer derives from v8::Handle and no longer
    allows you to directly dereference the object that the persistent
    handle points to. This means that the common pattern of caching
    oft-used JS values in a persistent handle no longer quite works,
    you first need to reconstruct a v8::Local from the persistent
    handle with the Local::New(isolate, persistent) factory method.

it appears Database->handle overshadows this?
subsequently all calls to handle_ in database.cc produce compile time errors.
Is there a way to work around this, or do you have to rename Database->handle into handle_ and change all the calls accordingly?

cheers

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