Spaces:
Sleeping
Sleeping
Download src/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js from PierreRouanet/gstreamer_test: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/%40webassemblyjs/helper-wasm-bytecode/lib/section.js
- Command line
-
hf download hf://spaces/PierreRouanet/gstreamer_test/src/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js
-
curl -L -o section.js https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/%40webassemblyjs/helper-wasm-bytecode/lib/section.js
636 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.getSectionForNode = getSectionForNode; | |
| function getSectionForNode(n) { | |
| switch (n.type) { | |
| case "ModuleImport": | |
| return "import"; | |
| case "CallInstruction": | |
| case "CallIndirectInstruction": | |
| case "Func": | |
| case "Instr": | |
| return "code"; | |
| case "ModuleExport": | |
| return "export"; | |
| case "Start": | |
| return "start"; | |
| case "TypeInstruction": | |
| return "type"; | |
| case "IndexInFuncSection": | |
| return "func"; | |
| case "Global": | |
| return "global"; | |
| // No section | |
| default: | |
| return; | |
| } | |
| } |