You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
According to proposal-record-tuple, the key of Record can only be a string.
Records may only have String keys, not Symbol keys, due to the issues described in tc39/proposal-record-tuple#15. Creating a Record with a Symbol key is a TypeError.
To Reproduce
constrecord= #{[Symbol()]: #{}};
Expected behavior
It should show the error // TypeError: Record may only have string as keys
The text was updated successfully, but these errors were encountered:
Describe the bug
According to proposal-record-tuple, the key of Record can only be a string.
To Reproduce
Expected behavior
It should show the error
// TypeError: Record may only have string as keys
The text was updated successfully, but these errors were encountered: