source-academy/js-slang

Source Typed: Source Typed 2-4 don't run standalone in js-slang

Closed this issue · 0 comments

Currently, js-slang (standalone) doesn't let me run Source Typed 2-4:

(base) henz@adminsocs-MacBook-Pro-2 dist % js-slang --chapter=2 --variant=typed
/Users/henz/Repos/SourceAcademy/js-slang/dist/repl/repl.js:103
        throw new Error('The chapter and variant combination provided is unsupported. Use the -h option to view valid chapters and variants.');

Source Typed 1 works:

(base) henz@adminsocs-MacBook-Pro-2 dist % js-slang --chapter=1 --variant=typed
(node:3785) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/henz/Repos/SourceAcademy/js-slang/node_modules/node-getopt/package.json' of './lib'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
undefined
> 1 + 2;
3
>