fix(browser): retain the null console argument in selected console text (#3479)
This commit is contained in:
1 parent
0da36910dc
commit
1dcaa77693
4 files changed
+21
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user