This one's really simple.
new Sandbox().compile("class Test {}");
leads to
ParseError: Unexpected token after prop: T: class Test {}
at lispify (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1159:31)
at lispifyExpr (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1197:16)
at /home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1259:16
at Array.map (<anonymous>)
at lispifyBlock (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1258:10)
at lispifyFunction (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1265:18)
at Object.parse [as default] (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/parser.js:1513:20)
at Sandbox.compile (/home/.../node_modules/.pnpm/@nyariv+sandboxjs@0.8.25/node_modules/@nyariv/sandboxjs/dist/node/Sandbox.js:71:38)
I understand the readme says ECMAScript support is only "90% completed", but with such a basic feature as classes missing, about 99% of modern JS programs simply won't compile. That makes this library effectively useless, and should be fixed ASAP.
This one's really simple.
leads to
I understand the readme says ECMAScript support is only "90% completed", but with such a basic feature as classes missing, about 99% of modern JS programs simply won't compile. That makes this library effectively useless, and should be fixed ASAP.