11.4.2 void operator

2010-05-16

UnaryExpression : void UnaryExpression

Code: (Meta Ecma)
function evaluate(void UnaryExpression) {
var expr = evaluate(UnaryExpression);
GetValue(expr).[[Call]]; // but how else to "call" it? doesnt make sense for non-function vars though
return undefined;
}

The void operator simply always returns undefined, while stille valuating the operand. It will always evaluate the operand because side effects might be observed.