-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
saveTable issue #5006
Comments
only happened in p5.vscode. |
I tested with 2 version of p5.mini.js |
@PandaBalls Can you maybe share a sample sketch? You can set one up with the p5.js web editor then we can test with the same table data as you have if you like. |
Here is the online editor version. |
The checks on this line assumes the table element will be a string and calls a string function on it while it could be other types (numbers on your example) so it fails. We could add an explicit typecast before that check to make sure everything is casted as a string before continuing, or we can add an additional check if the passed in value is string or not. |
Most appropriate sub-area of p5.js?
Details about the bug:
loadTable as table,
table.set() some values,
print(table) looks fine.
But saveTable(table) throw this error:
The text was updated successfully, but these errors were encountered: