MCPcopy Index your code
hub / github.com/microsoft/playwright / isError

Function isError

packages/isomorphic/utilityScriptSerializers.ts:66–72  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

64}
65
66function isError(obj: any): obj is Error {
67 try {
68 return obj instanceof Error || (obj && Object.getPrototypeOf(obj)?.name === 'Error');
69 } catch (error) {
70 return false;
71 }
72}
73
74function isTypedArray(obj: any, constructor: Function): boolean {
75 try {

Callers 1

innerSerializeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…