mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. implement binary operations (+, -, *...)
2. implement assigment complex cases( +=, -=...) 3. implement update expressions (++, --) 4. implement if, for statement 5. implement RopeString 6. implement throw statement this patch passes bitops-bitwise-and.js, bitops-3bit-bits-in-byte.js Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
887758e247
commit
ef2987e8b4
72 changed files with 1846 additions and 107 deletions
|
|
@ -18,7 +18,7 @@ CodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context* ctx, String
|
|||
CodeBlock* codeBlock;
|
||||
if (parentCodeBlock == nullptr) {
|
||||
// globalBlock
|
||||
codeBlock = new CodeBlock(ctx, StringView(source, scopeCtx->m_locStart.index, scopeCtx->m_locEnd.index), scopeCtx->m_isStrict, 0, scopeCtx->m_names);
|
||||
codeBlock = new CodeBlock(ctx, source, scopeCtx->m_isStrict, scopeCtx->m_locStart, scopeCtx->m_names);
|
||||
} else {
|
||||
codeBlock = new CodeBlock(ctx, StringView(source, scopeCtx->m_locStart.index, scopeCtx->m_locEnd.index),
|
||||
scopeCtx->m_locStart,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue