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.
 
 
 
 
 
 

15 lines
326 B

/*===
ReferenceError
===*/
/* Valid LeftHandSideExpression which is invalid for assignment
* is a run-time ReferenceError, not a SyntaxError. E5 allows
* a LHS Reference to be returned from a function, although it
* provides no standard way of doing so.
*/
try {
eval("f() = 1");
} catch (e) {
print(e.name);
}