Skip to content

deprecation warnings when used with node v6.0.0 #558

@mdouglass

Description

@mdouglass

The default use of Nan::SetPrototypeMethod is giving warnings under node 6.0. I had to change from:

Nan::SetPrototypeMethod(tpl, "flood", Flood);

to:

tpl->PrototypeTemplate()->Set(Nan::New<v8::String>("flood").ToLocalChecked(), Nan::New<v8::FunctionTemplate>(QuadTree::Flood));

in order to bypass the warning. It would be nice if SetPrototypeMethod was updated to do this internally.

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