mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. split Vector into TightVector and Vector
2. implement basic of DateObject 3. implement continue statement this patch passes 3d-raytrace.js Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
c34e6da780
commit
8acbfcfe52
21 changed files with 190 additions and 105 deletions
|
|
@ -47,6 +47,9 @@ CodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context* ctx, String
|
|||
if (!codeBlock->hasName(uname)) {
|
||||
CodeBlock* c = codeBlock->parentCodeBlock();
|
||||
while (c) {
|
||||
if (uname.string()->equals("green")) {
|
||||
puts("sadf");
|
||||
}
|
||||
if (c->tryCaptureIdentifiersFromChildCodeBlock(uname))
|
||||
break;
|
||||
c = c->parentCodeBlock();
|
||||
|
|
@ -87,7 +90,7 @@ ScriptParser::ScriptParserResult ScriptParser::parse(StringView scriptSource, St
|
|||
// dump Code Block
|
||||
#ifndef NDEBUG
|
||||
if (getenv("DUMP_CODEBLOCK_TREE") && strlen(getenv("DUMP_CODEBLOCK_TREE"))) {
|
||||
std::function<void(CodeBlock*, size_t depth)> fn = [&](CodeBlock* cb, size_t depth) {
|
||||
std::function<void(CodeBlock*, size_t depth)> fn = [&fn](CodeBlock* cb, size_t depth) {
|
||||
|
||||
#define PRINT_TAB() \
|
||||
for (size_t i = 0; i < depth; i++) { \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue