jsonschema: Crash in WASM app because of calls to filesystem functions
JSON schema crashes at WASM app startup during the initialization of the drafts. The reason is the call to stat
function, which is not implemented for the WASM platform. The call is in toAbs
function where it calls filepath.Abs
.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Fix #58: Do not call filepath funcs for WASM — committed to bserdar/jsonschema by bserdar 2 years ago
@manuschillerdev I did not try this with tinygo. This is part of a rather large project, and my binary size is around 15M.