node-segfault-handler icon indicating copy to clipboard operation
node-segfault-handler copied to clipboard

Electron 7.x.x and > throws context aware warning

Open tehnorm opened this issue 4 years ago • 1 comments

When loading the segfault handler in Electron 7.x.x and greater there is a warning in the output:

(node:39360) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

Is this something that is tricky to have implemented? It doesn't look critical in the stable version of Electron but will stop working in the future. We really appreciate the utility of segfault-handler and the work that has gone into it.

No one on our team really understands what it would take to create a PR - we would be very happy to help test.

tehnorm avatar Dec 05 '19 17:12 tehnorm

The issue mentioned says that N-API or Context Awareness is required in the future. Currently we use NaN, so it will require a rewrite to use N-API. Luckily, the code base isn't so large.

kneth avatar Dec 06 '19 08:12 kneth