njs
njs copied to clipboard
label to "if" statement is not recognized and crashes on break
Such code (result of transpiling):
console.log("Hello from NJS JavaScript");
foo: if (bar()) {
console.log("This prints:");
break foo;
console.log("This will never print.");
}
console.log("Because execution jumps to here!");
Thrown:
SyntaxError: Illegal break statement in /app/hello-world.js:5