jow- / ucode

JavaScript-like language with optional templating
ISC License
87 stars 24 forks source link

compiler: ensure that arrow functions with block bodies return no value #125

Closed jow- closed 1 year ago

jow- commented 1 year ago

Follow ES6 semantics and ensure that arrow functions with a block body don't implicitly return the value of the last executed statement.

Signed-off-by: Jo-Philipp Wich jo@mein.io

jow- commented 1 year ago

@huafu - this might be of interest for you