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