Improve line info construction (#4718)
- Simplify small encoding - Better line info for some corner cases JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user