-
Notifications
You must be signed in to change notification settings - Fork 237
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
Symbol.for('bar').toString() missing 'bar' (missing [[Description]] value) #621
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Comments
Interesting find. A quick fix is to modify void fxSymbolToString(txMachine* the, txSlot* slot)
{
txSlot* key = fxGetKey(the, slot->value.symbol);
fxStringX(the, slot, "Symbol(");
if (key) {
if ((key->kind == XS_STRING_KIND) || (key->kind == XS_STRING_X_KIND))
fxConcatStringC(the, slot, key->value.string);
else if ((key->kind == XS_KEY_KIND) || (key->kind == XS_KEY_X_KIND))
fxConcatStringC(the, slot, key->value.key.string);
}
fxConcatStringC(the, slot, ")");
} A more careful review and a run through test262 will be needed for a real fix. |
(Apparently test262 didn't report this? If that's true, we should let the maintainers of teset262 know.) |
Report it at https://github.com/tc39/test262/issues ?
…On Fri, Apr 2, 2021 at 2:16 PM Peter Hoddie ***@***.***> wrote:
(Apparently test262 didn't report this? If that's true, we should let the
maintainers of teset262 know.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#621 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACC3TF6TFEN6M55XZT3TMLTGYX4BANCNFSM42JLG5TA>
.
--
Cheers,
--MarkM
|
fix confirmed.
|
phoddie
added
the
fixed - please verify
Issue has been fixed. Please verify and close.
label
Apr 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Steps to Reproduce
Expected behavior
Symbol(bar)
Other information
ref https://tc39.es/ecma262/#sec-symbol.prototype.tostring
context:
q as best efforts stringify
testhttps://github.com/endojs/endo/blob/master/packages/ses/test/error/test-assert-log.js#L421
endojs/endo#508
cc @erights @kriskowal
The text was updated successfully, but these errors were encountered: