Symbol.toStringTag dominates default q stringify #604
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, if an object had a property named by the
Symbol.toStringTag
symbol and it was empty, then the human readable "quoted" printing byq
would be"[<value of that property>]"
.This PR removes the "and it was empty" part of that condition. This PR should wait until Agoric/agoric-sdk#2018 is closed, because until then data objects, whether empty or not, will pass this test, preventing
q
from providing a pleasant display of their properties.Until then, however, we have a painful difference in how
q
renders a remotable vs a remote presence of that remotable. Currently, for our objects-as-closures style of remotable,q
will show the method names. This difference means thatt.throws
tests will see different quoted text in error messages depending on where the error was thrown. Attn @Chris-Hibbert