Skip to content
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

API: Improve built-in print APIs when printing objects containing Map or Set #1723

Conversation

catloversg
Copy link
Contributor

This PR implements a change mentioned by d0sboots at #1710 (comment).

I also made a small behavior change. Current code prints an empty string if the player passes an empty map, but it still prints < Set: > if the player passes an empty Set. I removed the check && [...nativeArg].length, so it will print < Map: > now.

@d0sboots d0sboots merged commit 9a0400d into bitburner-official:dev Oct 23, 2024
5 checks passed
@catloversg catloversg deleted the pull-request/api/improve-built-in-print-apis-when-printing-objects-containing-map-or-set branch October 24, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants