node-capnp icon indicating copy to clipboard operation
node-capnp copied to clipboard

Fixing node12 deprecation warnings

Open haata opened this issue 5 years ago • 2 comments

  • NewFromUtf8
  • Get
  • Set
  • ToString

haata avatar Nov 23 '20 06:11 haata

Hmm, what V8 really wants people to do is to stop calling GetCurrent() all over the place and instead pass down the isolate/context/etc. from the FunctionCallbackInfo. So this feels a little sad to deal with all the deprecations by working around them.

Also sad to be using Check() all over the place instead of propagating the exception, which is what V8 really wants us to do.

But, not sure how much effort it's worth to try to do it right...

kentonv avatar Nov 30 '20 22:11 kentonv

I might have some time to work on cleaning things up, still learning how V8 is put together. I've been trying to track down a compiler/linker error on Arch Linux and was hoping to cut down on a bunch of the deprecation noise.

(My end goal is to integrate capnproto into an electron app).

haata avatar Dec 01 '20 01:12 haata