Jump to content

json.lua missing tostring error in decode_scanConstant


penguin0616
  • Fixed

In the function decode_scanConstant in json.lua, it tries to error with a tracked assert and uses tostring, which does not exist.That means json errors don't properly show.

You get [string "scripts/json.lua"]:330: attempt to call global 'tostring' (a nil value)

It needs to be changed to base.tostring, or any tostring that exists really.

 

Let me know if you need anything else for this report.

 

@zarklord_klei


Steps to Reproduce

Open json.lua

Scroll down to decode_scanConstant, and take note that tostring is nil.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...