mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
add json api to cffi and expose it in dc node
This commit is contained in:
11
node/segfault.js
Normal file
11
node/segfault.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const {default:dc} = require("./dist")
|
||||
|
||||
const ac = new dc("testdtrdtrh")
|
||||
|
||||
ac.startJSONRPCHandler(console.log)
|
||||
|
||||
setTimeout(()=>{
|
||||
ac.close() // This segfaults -> TODO Findout why?
|
||||
|
||||
console.log("still living")
|
||||
}, 1000)
|
||||
Reference in New Issue
Block a user