weiroll / weiroll.js

A high-level javascript transpiler for weiroll
https://weiroll.github.io/weiroll.js/
MIT License
53 stars 10 forks source link

Planner throws when attempting to plan functions with zero arguments #23

Open mattdf opened 3 years ago

mattdf commented 3 years ago

Functions with no arguments cause the planner to die with the following error:

 TypeError: Cannot read property 'dies' of undefined
      at _loop_1 (/home/dev/Programming/weiroll-calltype/node_modules/@weiroll/weiroll.js/src/planner.ts:244:39)
      at Planner.plan (/home/dev/Programming/weiroll-calltype/node_modules/@weiroll/weiroll.js/dist/planner.js:244:13)
      at Context.<anonymous> (/home/dev/Programming/weiroll-calltype/test/executor.js:130:39)