return V8Helper.createLoadableString(valueHandle, factory);
}
@Override
public SubpropertiesMirror getProperties() {
ObjectValueHandle objectValueHandle = valueHandle.asObject();
if (objectValueHandle == null) {
return SubpropertiesMirror.EMPTY;
}
int refId = (int) valueHandle.handle();
SubpropertiesMirror subpropertiesMirror;
if (type == Type.TYPE_FUNCTION) {
FunctionValueHandle functionValueHandle = objectValueHandle.asFunction();
subpropertiesMirror = new SubpropertiesMirror.FunctionValueBased(functionValueHandle);
} else {
subpropertiesMirror = new SubpropertiesMirror.ObjectValueBased(objectValueHandle);
}
return subpropertiesMirror;