You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubstructGreeter{greeting:String}declare_types!{pub class JsGreeterforGreeter{
init(call){Ok(Greeter{
greeting: String::default()})}
method hello(call){Ok(JsNull::new().as_value(call.scope))}}}register_module!(m, {let scope = m.scope;
let class = try!(JsGreeter::class(scope));
let constructor = try!(class.constructor(scope));
try!(m.exports.set("JsGreeter", constructor));
Ok(())});
Code like that gives me
$ node -p "require('./native')"
(node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
(node) and will stop working in the next major release.
and stack traces.
Googling a little bit show up nodejs/node#6228 and it seems that same thing as in NODE_SET_METHOD in src/node.h need to be done in NeonSys_Class_AddMethod in neon/crates/neon-sys/src/neon.cc - Setting FunctionTemplate to prototype instead of Function.
The text was updated successfully, but these errors were encountered:
Code like that gives me
and stack traces.
Googling a little bit show up nodejs/node#6228 and it seems that same thing as in
NODE_SET_METHOD
insrc/node.h
need to be done inNeonSys_Class_AddMethod
inneon/crates/neon-sys/src/neon.cc
-Set
tingFunctionTemplate
to prototype instead ofFunction
.The text was updated successfully, but these errors were encountered: