f19e6c8172
* deprecate sodium-test ahrness * prune dependencies
9 lines
187 B
JavaScript
9 lines
187 B
JavaScript
/* eslint-disable */
|
|
const sodium = require('../..')
|
|
const buf = sodium.sodium_malloc(1)
|
|
sodium.sodium_mprotect_readonly(buf)
|
|
buf[0]
|
|
process.send('read')
|
|
buf[0] = 1
|
|
process.send('write')
|