b9org / b9

An educational JS virtual machine based on Eclipse OMR
http://www.base9.xyz
Apache License 2.0
45 stars 24 forks source link

Use Buffer.alloc for older node.js support #166

Closed rwy7 closed 6 years ago

rwy7 commented 6 years ago

unsafeAlloc is faster, but alloc is supported on older versions of node.

Signed-off-by: Robert Young rwy0717@gmail.com

rwy7 commented 6 years ago

/cc @dnakamura @nbhuiyan closes: #163