react-code-dataset / next.js /crates /next-custom-transforms /tests /fixture /edge-assert /guarded-runtime-process /output.js
Download next.js/crates/next-custom-transforms/tests/fixture/edge-assert/guarded-runtime-process/output.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 99 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/edge-assert/guarded-runtime-process/output.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/fixture/edge-assert/guarded-runtime-process/output.js
-
curl -L -o output.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/edge-assert/guarded-runtime-process/output.js
99 Bytes
| if (process.env.NEXT_RUNTIME === 'edge') { | |
| setTimeout(cb, 0); | |
| } else { | |
| setImmediate(cb); | |
| } | |