|| evaluationParsedResponse.wasThrown()
|| evaluationParsedResponse.getResult() == null;
final RemoteObject evaluationResult = isError ? null : evaluationParsedResponse.getResult();
Jso params = Jso.create();
if (!isError && DebuggerApiUtils.isNonFiniteNumber(evaluationResult)) {
params.addField("functionDeclaration", "function(a) {"
+ " this[a] = " + evaluationResult.getDescription() + ";"
+ " return this[a];"
+ "}");
params.addField("objectId", remoteObjectId.toString());
JsonArray<Jso> arguments = JsonCollections.createArray();
arguments.add(Jso.create());
arguments.get(0).addField("value", propertyName);
params.addField("arguments", arguments);
} else if (!isError) {
params.addField("functionDeclaration", "function(a, b) { this[a] = b; return this[a]; }");
params.addField("objectId", remoteObjectId.toString());
JsonArray<Jso> arguments = JsonCollections.createArray();
arguments.add(Jso.create());
arguments.add(Jso.create());
arguments.get(0).addField("value", propertyName);
if (evaluationResult.getObjectId() == null) {
if (!DebuggerApiUtils.addPrimitiveJsoField(
arguments.get(1), "value", evaluationResult)) {
isError = true;
}
} else {
arguments.get(1).addField("objectId", evaluationResult.getObjectId().toString());
}
params.addField("arguments", arguments);
}
if (isError) {
// We do not know the property value. Just dispatch the error event.
OnRemoteObjectPropertyChanged parsedResponse =