amend generateNodeIndex script

This commit is contained in:
d98762625 2018-05-30 11:12:57 +01:00
parent 9d5e533e32
commit 336810cbf4

View File

@ -67,7 +67,7 @@ function generateChef() {
`;
Object.keys(operations).forEach((op) => {
code += ` ${decapitalise(op)}: wrap(core_${op}),\n`;
code += ` '${decapitalise(op)}': wrap(core_${op}),\n`;
});
code += ` };
@ -78,7 +78,7 @@ const chef = generateChef();
`;
Object.keys(operations).forEach((op) => {
code += `const ${decapitalise(op)} = chef[${decapitalise(op)}];\n`;
code += `const ${decapitalise(op)} = chef['${decapitalise(op)}'];\n`;
});
code +=`