Open lucascebertin opened 4 years ago
libsys.malloc is not a function
var libjs = require('libjs');
console.dir(libsys )
{ syscall: [Function: syscall], syscall64: [Function: syscall64], syscall_0: [Function: syscall_0], syscall_1: [Function: syscall_1], syscall_2: [Function: syscall_2], syscall_3: [Function: syscall_3], syscall_4: [Function: syscall_4], syscall_5: [Function: syscall_5], syscall_6: [Function: syscall_6], syscall64_0: [Function: syscall64_0], syscall64_1: [Function: syscall64_1], syscall64_2: [Function: syscall64_2], syscall64_3: [Function: syscall64_3], syscall64_4: [Function: syscall64_4], syscall64_5: [Function: syscall64_5], syscall64_6: [Function: syscall64_6], getAddressArrayBuffer: [Function: getAddressArrayBuffer], getAddressTypedArray: [Function: getAddressTypedArray], getAddressBuffer: [Function: getAddressBuffer], getAddress: [Function: getAddress], frame: [Function: frame], call: [Function: call], call64: [Function: call64], call_0: [Function: call_0], call_1: [Function: call_1], call64_0: [Function: call64_0], call64_1: [Function: call64_1], sigaction: [Function: sigaction], dlsym: [Function: dlsym], __testDlsymAddr: [Function: __testDlsymAddr], cmpxchg8: [Function: cmpxchg8], cmpxchg16: [Function: cmpxchg16], cmpxchg32: [Function: cmpxchg32], async: [Function: async] }
Trying to run some samples of ass-js, came to this
libsys.malloc is not a function
at: https://github.com/streamich/static-buffer/blob/de12e160d0cb3ab3b551719e98d12ee08de118c6/arraybuffer.js#L38Sample trying to be executed:
At some point, I just find out about libsys shim, so I imported it at the first line of my code... Without that import, I face libsys undefined and
Cannot read property 'syscall64' of undefined
OS Version:
Node Version:
NPM Version:
May I did something wrong? Any tips?