mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Update uneval to handle Symbol (#444)
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
This commit is contained in:
parent
a12e36834c
commit
67e18df5f3
2 changed files with 3 additions and 10 deletions
|
|
@ -225,6 +225,9 @@ static ValueRef* builtinRun(ExecutionStateRef* state, ValueRef* thisValue, size_
|
|||
static ValueRef* builtinUneval(ExecutionStateRef* state, ValueRef* thisValue, size_t argc, ValueRef** argv, bool isConstructCall)
|
||||
{
|
||||
if (argc) {
|
||||
if (argv[0]->isSymbol()) {
|
||||
return argv[0]->asSymbol()->symbolDescriptiveString();
|
||||
}
|
||||
return argv[0]->toString(state);
|
||||
}
|
||||
return StringRef::emptyString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue