(object, excludeContext)
| 88 | * @returns {string} stringified version |
| 89 | */ |
| 90 | const objectToString = (object, excludeContext) => { |
| 91 | let str = ""; |
| 92 | for (const key in object) { |
| 93 | if (excludeContext && key === "context") continue; |
| 94 | const value = object[key]; |
| 95 | str += |
| 96 | typeof value === "object" && value !== null |
| 97 | ? `|${key}=[${objectToString(value, false)}|]` |
| 98 | : `|${key}=|${value}`; |
| 99 | } |
| 100 | return str; |
| 101 | }; |
| 102 | |
| 103 | /** @typedef {NonNullable<ResolveContext["yield"]>} Yield */ |
| 104 |