robertklep / node-metrohash

Node.js bindings for MetroHash
MIT License
26 stars 8 forks source link

v8 warning issued after require('metrohash') #1

Closed JulianTonti closed 7 years ago

JulianTonti commented 7 years ago

After require('metrohash'), node dumps about 10 pages worth of warnings which seem to be the same thing over and over. At the core of it is a V8 warning as follows (note that metrohash functions fine nonetheless, for the time being):

==== C stack trace ===============================

1: v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute) 2: NodeMetroHash<MetroHash64, 8>::Init(char const, v8::Local) 3: InitAll(v8::Local) 4: node::DLOpen(v8::FunctionCallbackInfo const&) 5: v8::internal::FunctionCallbackArguments::Call(void ()(v8::FunctionCallbackInfo const&)) 6: v8::internal::MaybeHandle v8::internal::(anonymous namespace)::HandleApiCallHelper(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: 0xb96d0e092a7 9: 0xb96d0fc16c4 (node) v8::ObjectTemplate::Set() with non-primitive values is deprecated (node) and will stop working in the next major release.

robertklep commented 7 years ago

Thanks :) Which version of Node is this?

JulianTonti commented 7 years ago

My bad, I should have stated that: 6.9.1 Running on OS X 10.12

robertklep commented 7 years ago

I have to admit that I haven't looked at this module for a while, hence the warnings. I'll take a look!

robertklep commented 7 years ago

@JulianTonti just published 1.5.0, try that.

I couldn't even get it to build on v6 and v7 due to outdated dependencies, but after updating those it works again.

JulianTonti commented 7 years ago

Rebuilt for 6.9.1 and it's It's fixed. Updated to node 7.0.0, rebuilt again, still good.

Tight work mate!

robertklep commented 7 years ago

Thanks for testing! Closing issue 👍🏼