Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
.registerTypeAdapter(OffsetDateTime.class, new OffsetDateTimeSerializer())
.serializeNulls().create();

static SerializedError serializeError(Throwable e) {

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 87 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
SerializedError result = new SerializedError();
result.error = new SerializedError.Error();
result.error.message = e.getMessage();
Expand Down Expand Up @@ -118,13 +118,13 @@
private final Map<HashableValue, Integer> valueToId = new HashMap<>();
private int lastId = 0;
private final List<JSHandleImpl> handles = new ArrayList<>();
private final SerializedValue serializedValue;

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 121 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol

ValueSerializer(Object value) {
serializedValue = serializeValue(value);
}

SerializedArgument toSerializedArgument() {

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 127 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
SerializedArgument result = new SerializedArgument();
result.value = serializedValue;
result.handles = new Channel[handles.size()];
Expand All @@ -137,7 +137,7 @@
return result;
}

private SerializedValue serializeValue(Object value) {

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 140 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
SerializedValue result = new SerializedValue();
if (value instanceof JSHandleImpl) {
result.h = handles.size();
Expand All @@ -152,7 +152,7 @@
result.v = "Infinity";
} else if (d == Double.NEGATIVE_INFINITY) {
result.v = "-Infinity";
} else if (d == -0) {
} else if (Double.doubleToRawLongBits(d) == Double.doubleToRawLongBits(-0.0)) {
result.v = "-0";
} else if (Double.isNaN(d)) {
result.v = "NaN";
Expand Down Expand Up @@ -225,16 +225,16 @@
}
}

static SerializedArgument serializeArgument(Object arg) {

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 228 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
return new ValueSerializer(arg).toSerializedArgument();
}

static <T> T deserialize(SerializedValue value) {

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 232 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
return deserialize(value, new HashMap<>());
}

@SuppressWarnings("unchecked")
private static <T> T deserialize(SerializedValue value, Map<Integer, Object> idToValue) {

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, chromium)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-15-xlarge, webkit)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, chromium)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, webkit)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (ubuntu-latest, firefox)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, chrome)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (macos-latest, msedge)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / dev (macos-latest, firefox)

cannot find symbol

Check failure on line 237 in playwright/src/main/java/com/microsoft/playwright/impl/Serialization.java

View workflow job for this annotation

GitHub Actions / stable (ubuntu-latest, chrome)

cannot find symbol
if (value.ref != null) {
return (T) idToValue.get(value.ref);
}
Expand Down
Loading