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:
seonghyun kim 2017-02-03 13:19:51 +09:00
commit 438cdfcb38
5 changed files with 30 additions and 23 deletions

View file

@ -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;
}