mirror of https://github.com/svaarala/duktape.git
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.
18 lines
328 B
18 lines
328 B
12 years ago
|
|
||
|
/*===
|
||
|
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);
|
||
|
}
|
||
|
|