Improve line info construction (#4718)

- Simplify small encoding
- Better line info for some corner cases

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
This commit is contained in:
Zoltan Herczeg authored and GitHub committed 2021-07-16 16:08:38 +02:00
1 parent d5a7839632
commit 252d68936f
7 files changed
+61 -64

No files matched your search

+10
View File
@@ -159,3 +159,13 @@ function f7() {
eval("assert(x()() === 5); function y() { return 5 } assert(x()() === 5)");
}
f7()
eval(" ");
eval("(function () {})")
try {
/* Only fails in ES5.1 */
eval("()=>0")
} catch (e) {
assert(e instanceof SyntaxError)
}