We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug It's Record.fromEntries argument type assertion issue, which is an array-like object for each item in its argument.
Record.fromEntries
To Reproduce
const record = Record.fromEntries([["a", 1], #["b", 2], "c3"]); console.log(record); // print: Record {a: 1, b: 2, c: "3"}
Expected behavior In terms of Record.fromEntries spec, it should throw this error.
Uncaught TypeError: Iterator value c3 is not an entry object
The text was updated successfully, but these errors were encountered:
Hi @unadlib
There is a chance that the spec will be updated to accept tuples here: tc39/proposal-record-tuple#107
Sorry, something went wrong.
No branches or pull requests
Describe the bug
It's
Record.fromEntries
argument type assertion issue, which is an array-like object for each item in its argument.To Reproduce
Expected behavior
In terms of
Record.fromEntries
spec, it should throw this error.The text was updated successfully, but these errors were encountered: