Closed Hilbertangers closed 4 years ago
This specific case looks fine to me:
emmmm.....
i use V8,What about you? @mourner
@Hilbertangers it's true that this is not perfectly equivalent — but this makes the issue a duplicate of #81.
However, if you're surprised that [] === []
is false
, here's an article on how comparison operators work: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Using_the_equality_operators
transpile
[...Array(2)]
, expect[undefined, undefined]
, but[].concat(Array(2)) === []
because Iterators is Dangerous?