4 ms·
Can any javascript people explain this piece of code const $M = require('memory'); That the compiler outputs as JS? Is the 'require('memory')' something t
by djhworld 14y ago
Can any javascript people explain this piece of code
const $M = require('memory');
That the compiler outputs as JS? Is the 'require('memory')' something that is native to the JS runtime?
- mbebenita 14y ago"require('memory')" gives you back a JS module that's written in LLJS (http://git.io/vHeH2g http://git.io/vHeH2g). It exports several typed array views and a few functions like malloc() / free(). It's all JavaScript, nothing native.