Make compilable in clang (#71)

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
김승현/Tizen Platform Lab(SR)/Engineer/삼성전자 2018-05-04 16:44:19 +09:00 committed by 최영일/Tizen Platform Lab(SR)/Principal Engineer/삼성전자
commit 6b76791e32
30 changed files with 1737 additions and 866 deletions

View file

@ -140,7 +140,8 @@ int main(int argc, char* argv[])
printf("ERROR: Cannot read interactive shell input\n");
return 3;
}
Escargot::String* str = new Escargot::UTF16String(std::move(Escargot::utf8StringToUTF16String(buf, strlen(buf))));
auto s = Escargot::utf8StringToUTF16String(buf, strlen(buf));
Escargot::String* str = new Escargot::UTF16String(std::move(s));
eval(context, str, Escargot::String::fromUTF8("from shell input", strlen("from shell input")), true);
}