Converting to buffer array the list of elements

This commit is contained in:
Richard Ramos 2018-10-03 10:40:05 -04:00
parent 6614a068d4
commit 1a588936c2
2 changed files with 2 additions and 0 deletions

View File

@ -504,3 +504,4 @@ module.exports = {
]
};
module.exports.elements = module.exports.elements.map(x => new Buffer(x.substring(2), 'hex'));

View File

@ -35,6 +35,7 @@ stream2.once('open', function(fd) {
.map(el => "\t\t'0x" + el.toString('hex') + "'")
.join(",\n"))
stream2.write("\n\t]\n};\n\n");
stream2.write("module.exports.elements = module.exports.elements.map(x => new Buffer(x.substring(2), 'hex'));\n\n");
stream2.end();
});