This commit is contained in:
Dmitry Vasilev
2023-02-07 23:07:37 +08:00
parent 131c0565f1
commit 4119c52413
4 changed files with 54 additions and 38 deletions

View File

@@ -130,9 +130,17 @@ there is cached result.
Builtin IO functions are mocked to cache IO. Current list of builtin cached
functions is:
- `Date` constructor
- `Date`
- `Math.random()`
- `fetch`
- `Response` methods:
- `arrayBuffer`
- `blob`
- `formData`
- `json`
- `text`
- `setTimeout`
- `clearTimeout`
If you want to make your own own function IO-caching, or import third party
function and make it IO-caching, then you should use `IO` pragma.