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.
25 lines
519 B
25 lines
519 B
12 years ago
|
/*
|
||
|
* LeftHandSideExpression allows a much wider syntactical set of
|
||
|
* lvalues than we actually support. Valid LHS values which we
|
||
|
* can't write to must not cause SyntaxError but a ReferenceError.
|
||
|
*
|
||
|
* The side effects of the LHS and the RHS (in that order) must
|
||
|
* happen before the ReferenceError.
|
||
|
*/
|
||
|
|
||
|
/* FIXME: is this correct? Both Rhino and V8 will just throw a
|
||
|
* ReferenceError.
|
||
|
*/
|
||
|
|
||
|
/*===
|
||
|
lhs
|
||
|
rhs
|
||
|
ReferenceError
|
||
|
===*/
|
||
|
|
||
|
try {
|
||
|
eval("print('lhs') = print('rhs');");
|
||
|
} catch(e) {
|
||
|
print(e.name);
|
||
|
}
|