From 4d7af188670bcdabcc409c27314da92a964ca0e8 Mon Sep 17 00:00:00 2001 From: Pomax Date: Sat, 27 Jun 2020 10:38:13 -0700 Subject: [PATCH] buffer warning fix --- tools/tex-to-svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tex-to-svg.js b/tools/tex-to-svg.js index 9f33b9cc..bf639621 100644 --- a/tools/tex-to-svg.js +++ b/tools/tex-to-svg.js @@ -34,7 +34,7 @@ if (latex === -1) { process.exit(1); } base64 = process.argv[base64+1]; - latex = new Buffer(base64, "base64").toString(); + latex = Buffer.from(base64, "base64").toString(); } else { // get the --latex value var args = Array.from(process.argv);