Commit bd0bacb6 authored by Damien George's avatar Damien George

javascript/library: Use Buffer.alloc() since new Buffer() is deprecated.

parent ca39ea7c
......@@ -48,7 +48,7 @@ mergeInto(LibraryManager.library, {
var mp_interrupt_char = Module.ccall('mp_hal_get_interrupt_char', 'number', ['number'], ['null']);
var fs = require('fs');
var buf = new Buffer(1);
var buf = Buffer.alloc(1);
try {
var n = fs.readSync(process.stdin.fd, buf, 0, 1);
if (n > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment