Skip to content

Commit

Permalink
Fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Jul 6, 2024
1 parent 84802bd commit ef98b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripting/expose.nim
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ macro expose*(moduleName: static string, def: untyped): untyped =
except:
let name = `pureFunctionNameStr`
logging.log lvlError, "Failed to run function " & name & &": Invalid arguments: {getCurrentExceptionMsg()}\n{getStackTrace()}"
return "null"

static:
addWasmImportedFunction(`moduleName`, `jsonStringWrapperFunctionName`, `jsonStringWrapperFunctionWasm`):
Expand Down

0 comments on commit ef98b7d

Please sign in to comment.