The invalid-operation exception is raised only on stack underflow, even if the operand is signalling NaN or is an unsupported format.