Download next.js/test/development/app-dir/serialize-circular-error/app/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/serialize-circular-error/app/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/serialize-circular-error/app/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/serialize-circular-error/app/page.tsx
307 Bytes
| class A { | |
| other: B | null | |
| constructor() { | |
| this.other = null | |
| } | |
| } | |
| class B { | |
| a: A | |
| constructor(a: A) { | |
| this.a = a | |
| a.other = this | |
| } | |
| } | |
| const objA = new A() | |
| const objB = new B(objA) | |
| export default function Page() { | |
| // eslint-disable-next-line no-throw-literal | |
| throw { objA, objB } | |
| } | |