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.

17 lines
247 B

/*===
undefined
===*/
/* 'x' does not resolve, should not cause a ReferenceError but
* an "undefined" typeof. E5 Section 11.4.3, step 2.a.
*
* This was broken at some point.
*/
try {
print(typeof x);
} catch (e) {
print(e.name);
}