Fix handling of non-reference operands in prefix operations.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
Ruben Ayrapetyan committed 2015-10-30 16:41:16 +03:00
1 parent 906558b8e9
commit 4500965316
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -43,3 +43,11 @@ assert (++o.p === 2);
assert (o.p === 2);
assert (--o.p === 1);
assert (o.p === 1);
try {
eval ('++ ++ a');
assert (false);
}
catch (e) {
assert (e instanceof ReferenceError);
}