numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
202 stars 117 forks source link

Throw a typecheck error when if() is not given enough arguments #786

Closed christianp closed 3 years ago

christianp commented 3 years ago

There was an expression of the form if(test, expr_true), missing an 'else' case, which threw an indecipherable javascript error instead of the usual "no right type definition found".