Symbol.prototype.valueOf.call(x) gives different results than x.valueOf() #1617
Labels
bug
Something isn't working
builtins
PRs and Issues related to builtins/intrinsics
good first issue
Good for newcomers
Hacktoberfest
Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
Milestone
Describe the bug
Symbol
gives different results depending on howvalueOf
is called, which causes various tests to fail, like this one for example.Here's an example session from boa-cli:
To Reproduce
See above.
boa-cli
was run withcd boa_cli; cargo run
.Expected behavior
The
valueOf
aSymbol
should always==
the Symbol, no matter howvalueOf
is called. Here's an example from Node.js:This behavior should be made the same in Boa.
Build environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: