TopchetoEU/revert-ES5 #31

Merged
TopchetoEU merged 41 commits from TopchetoEU/revert-ES5 into master 2024-12-09 21:39:57 +00:00
Showing only changes of commit 28679f44d5 - Show all commits

View File

@ -1,6 +1,9 @@
package me.topchetoeu.jscript.runtime.values.primitives;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import me.topchetoeu.jscript.common.environment.Environment;
import me.topchetoeu.jscript.runtime.exceptions.EngineException;
@ -34,6 +37,11 @@ public final class SymbolValue extends PrimitiveValue {
else return "Symbol(" + value + ")";
}
@Override
public List<String> toReadableLines(Environment env, HashSet<ObjectValue> passed) {
return Arrays.asList(toString());
}
public SymbolValue(String value) {
this.value = value;
}