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:
bence gabor kis 2020-03-17 16:25:34 +01:00 committed by Hyukwoo Park
commit 52bfc6054b
9 changed files with 47 additions and 16 deletions

View file

@ -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 {