fix(browser): retain the null console argument in selected console text (#3479)

This commit is contained in:
The one -Niu authored and GitHub committed 2026-10-22 04:07:37 +08:00
1 parent 0da36910dc
commit 1dcaa77693
4 files changed
+21 -1

No files matched your search

+6
View File
@@ -243,6 +243,12 @@ export const consolePrimitive = (
: undefined;
case "undefined":
return { type, text: "undefined" };
case "object":
// The protocol delivers `null` as an object with a `null` subtype. Its
// sentinel is already in the event, unlike an unexpanded remote object.
return cdpStringValue(value.subtype) === "null"
? { type, text: "null" }
: undefined;
default:
return undefined;
}