use of com.oracle.truffle.tools.chromeinspector.types.InternalPropertyDescriptor in project graal by oracle.
the class TruffleRuntime method createPropertyJSON.
private JSONObject createPropertyJSON(DebugValue v, String defaultName) {
PropertyDescriptor pd;
RemoteObject rv = new RemoteObject(v, context.getErr());
context.getRemoteObjectsHandler().register(rv);
String name = v.getName();
if (name == null && defaultName != null) {
name = defaultName;
}
if (!v.isInternal()) {
pd = new PropertyDescriptor(name, rv, v.isWritable(), null, null, true, true, null, true, null);
return pd.toJSON();
} else {
InternalPropertyDescriptor ipd = new InternalPropertyDescriptor(name, rv);
return ipd.toJSON();
}
}
Aggregations