« Bugzilla Issues Index

#1561 — Wrong error messages in test S12.6.1_A1.


I was reading the test S12.6.1_A1 and I didn’t understood it until I realize that the error messages wasn’t matching the tested property.

For instance, the test begins with:
var __in__do;

do __in__do=1; while ( false );

if (__in__do!==1) {
$ERROR('#1: false evaluates to false');

Mmmh… If “false” doesn’t evaluate to false due to oddities of the JS interpreter, then the loop won’t terminate and this message won’t ever happen.
I think the error message should be “$ERROR('#1: the inner statement of a do-loop should be executed.')”. The current one is quite ununderstandable.


pull request submitted to Github.