-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecated warning with nan v2.7.0 and Node.js 9.0.0 #707
Comments
That is unfortunate. It was only a question of time. |
If I understand PR #708 correctly, the plan is leave Nan::ForceSet as it is, mark it as deprecated and introduce Nan::DefineOwnProperty. V8 already has v8::Object::ForceSet marked as deprecated. This results in the deprecation warning shown in the above post irrespective of whether Nan::ForceSet is used by an addon or not. So if I want to suppress the V8 deprecation warning for v8::Object::ForceSet I'll have to suppress it in my addon because NAN will not be suppressing it, is this correct? |
@fivdi Yes, correct. |
Still accounting for versions. Nan::ForceSet would be marked as deprecated regardless of Node version, but for Node 9 onwards, Nan::ForceSet would be an alias for Nan::DefineOwnProperty. That should not cause any undue warnings.
…On November 4, 2017 8:31:17 AM GMT+02:00, Brian Cooke ***@***.***> wrote:
If I understand PR #708 correctly,
the plan is leave Nan::ForceSet as it is, mark it as deprecated and
introduce Nan::DefineOwnProperty.
V8 already has v8::Object::ForceSet marked as deprecated. This results
in the deprecation warning shown in the above post irrespective of
whether Nan::ForceSet is used by an addon or not.
So if I want to suppress the V8 deprecation warning for
v8::Object::ForceSet I'll have to suppress it in my addon because NAN
will not be suppressing it, is this correct?
|
… deprecation warning when building on 9.x.
Fixed in master. New release coming soon. |
When a native module using nan v2.7.0 is installed with Node.js 9.0.0 there is a deprecated warning. For example, here's the warning shown when installing the epoll module:
The text was updated successfully, but these errors were encountered: