Implement left-hand-side expression parsing. (#3292)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Robert Fancsik
parent
4996542f02
commit
58f71e6ffa
@@ -281,3 +281,11 @@ assert(count == 1
|
||||
|| 'base_prop2' in log
|
||||
|| 'derived_prop1' in log
|
||||
|| 'derived_prop2' in log));
|
||||
|
||||
try {
|
||||
/* This form is a SyntaxError even in ES5.1. */
|
||||
eval("for (a = b in {}) ;");
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof SyntaxError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user