Update history, fixed a broken unit test for Help

This commit is contained in:
jos 2017-09-30 14:30:29 +02:00
parent 8761379b23
commit b1a2de0270
3 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,11 @@
# History
## not yet released, version 3.16.4
- Fixed many small issues in the embedded docs. Thanks @Schnark.
## 2017-08-28, version 3.16.3
- Fixed #934: Wrong simplification of unary minus. Thanks @firepick1.

View File

@ -62,12 +62,13 @@ function factory (type, config, load, typed) {
var res;
try {
// note: res can be undefined when `expr` is an empty string
res = parser.eval(expr);
}
catch (e) {
res = e;
}
if (!type.isHelp(res)) {
if (res !== undefined && !type.isHelp(res)) {
desc += ' ' + string.format(res, {precision: 14}) + '\n';
}
}

View File

@ -39,6 +39,7 @@
"Mathias Polligkeit (https://github.com/woylie)",
"Max Bruckner (https://github.com/FSMaxB)",
"Maxence Dalmais (https://github.com/maxired)",
"Michael M. (https://github.com/Schnark)",
"Mitchel Kelonye (https://github.com/kelonye)",
"mtraynham (https://github.com/mtraynham)",
"Niels Heisterkamp (https://github.com/nheisterkamp)",