mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
New Feature - Symbol get description
Removed the related test-cases in test262 Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
parent
e471c66e27
commit
52bfc6054b
9 changed files with 47 additions and 16 deletions
|
|
@ -3025,10 +3025,10 @@ static Value createObjectPropertyFunctionName(ExecutionState& state, const Value
|
|||
StringBuilder builder;
|
||||
if (name.isSymbol()) {
|
||||
builder.appendString(prefix);
|
||||
if (name.asSymbol()->description()->length() > 0) {
|
||||
if (name.asSymbol()->description().hasValue()) {
|
||||
// add symbol name if it is not an empty symbol
|
||||
builder.appendString("[");
|
||||
builder.appendString(name.asSymbol()->description());
|
||||
builder.appendString(name.asSymbol()->description().value());
|
||||
builder.appendString("]");
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue