Skip to content
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

Node6 compatibility warning #79

Closed
indeyets opened this issue Apr 27, 2016 · 1 comment
Closed

Node6 compatibility warning #79

indeyets opened this issue Apr 27, 2016 · 1 comment

Comments

@indeyets
Copy link

I get the following when I run test suite of my app on NodeJS 6.0

(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.

==== JS stack trace =========================================

Security context: 0x2128330c9fa9 <JS Object>#0#
    1: .node [module.js:568] [pc=0x121388625b24] (this=0x26964cde2a79 <an Object with map 0x32a2c90af9d9>#1#,module=0x3cc85fcba279 <a Module with map 0x32a2c90181b9>#2#,filename=0x3cc85fcba251 <String[107]: /path/to/project/node_modules/mmmagic/build/Release/magic.node>)
    2: load [module.js:~447] [pc=0x12138878fcf6] (this=0x3cc85fcba279 <a Module with map 0x32a2c90181b9>#2#,filename=0x3cc85fcba251 <String[107]: /path/to/project/node_modules/mmmagic/build/Release/magic.node>)
    3: tryModuleLoad(aka tryModuleLoad) [module.js:415] [pc=0x12138843899d] (this=0x212833004189 <undefined>,module=0x3cc85fcba279 <a Module with map 0x32a2c90181b9>#2#,filename=0x3cc85fcba251 <String[107]: /path/to/project/node_modules/mmmagic/build/Release/magic.node>)
    4: _load [m 1: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
 2: Magic::Initialize(v8::Local<v8::Object>)
 3: init
 4: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
 5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 6: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>)
 7: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*)
 8: 0x12138830961b
@mscdex
Copy link
Owner

mscdex commented Apr 27, 2016

This was a nan issue. Reinstall mmmagic and it should pick up the fixed nan version (v2.3.0+).

@mscdex mscdex closed this as completed Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants