You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
300 B

/*
* 'void' operator (E5 Section 11.4.2).
*/
/*===
456
undefined
===*/
try {
print(eval("123; 456;"));
} catch (e) {
print(e.name);
}
try {
/* latter expression generates an 'undefined' implicit return value */
print(eval("123; void 456;"));
} catch (e) {
print(e.name);
}