mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
1. process \r\n pattern in ByteCodeBlock::computeNodeLOCFromByteCode correctly
2. use stackStorage for "arguments" object 3. do not insert empty name for ASTScopeContext when comes emptyString in FunctionExpression name Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
ef9e0ed699
commit
438cdfcb38
5 changed files with 30 additions and 23 deletions
|
|
@ -63,6 +63,10 @@ ExtendedNodeLOC ByteCodeBlock::computeNodeLOCFromByteCode(Context* c, size_t cod
|
|||
char16_t c = cb->src().charAt(i);
|
||||
column++;
|
||||
if (isLineTerminator(c)) {
|
||||
// skip \r\n
|
||||
if (c == 13 && (i + 1 < index) && cb->src().charAt(i + 1) == 10) {
|
||||
i++;
|
||||
}
|
||||
line++;
|
||||
column = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue