mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix source name to always have valid string value
* set empty string for no name case Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
92a8db40c8
commit
f6eeb2c1fc
4 changed files with 5 additions and 3 deletions
|
|
@ -1059,7 +1059,7 @@ int main(int argc, char* argv[])
|
|||
return 3;
|
||||
}
|
||||
StringRef* str = Escargot::StringRef::createFromUTF8(buf, strlen(buf));
|
||||
evalScript(context, str, StringRef::createFromASCII("from shell input"), true, false);
|
||||
evalScript(context, str, StringRef::emptyString(), true, false);
|
||||
}
|
||||
|
||||
#if defined(ESCARGOT_ENABLE_TEST)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue