You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/addons/consoleCatcher.ts
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ function createConsoleCatcher(): {
20
20
* Converts any argument to its string representation
21
21
*
22
22
* @param arg - Value to convert to string
23
+
* @throws Error if the argument can not be stringified, for example by such reason:
24
+
* SecurityError: Failed to read a named property 'toJSON' from 'Window': Blocked a frame with origin "https://codex.so" from accessing a cross-origin frame.
23
25
*/
24
26
functionstringifyArg(arg: unknown): string{
25
27
if(typeofarg==='string'){
@@ -52,7 +54,13 @@ function createConsoleCatcher(): {
0 commit comments