-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
False positives comparing equality of Maps/Sets with core-js #4
Comments
I'm not 100% sure, but it seems like this is a dup of #3. |
I'm using those test cases, and it's working for me in Safari 7 and 8, and IE 9 - 11 :-/ |
Is there any possibility that in your tests, you've got something that modifies globals? |
Yes, there is. I'm using Babel's polyfill to get Map/Set support in those browsers. That's probably the culprit. Either: a) I should just skip Map/Set tests in environments that don't support them (probably easiest) or I'm open to either. |
ok, I just pushed a commit that only runs tests for From what I can tell, it looks like isEqual(new Set('a'), new Set('b')) === true in IE11. Can you please confirm? |
OK, so, core-js (babel's polyfill) definitely does slightly different things than es6-shim's (which is what is-equal is tested with) - they're not fully spec-compliant. I can definitely try to add tests though to make is-equal work with those. Regarding IE 11, this is actually a browser bug - |
Thanks for the tip. I've updated my |
@mjackson I've narrowed down the issue to a bug in |
I found a similar problem in [email protected] Problem is that Phantom is not throwing an error while calling https://github.com/ljharb/is-equal/blob/master/index.js#L68 And the It looks like PhantomJS issue, but may be it will help you. |
@Poplava phantomjs 1.9 has Map and Set? I thought it didn't even have "bind". Are you using |
@ljharb I didn't use |
@Poplava |
@ljharb oh, really! I'm sorry... I confused. |
Also add `npm run test:corejs`. Relates to #4.
@mjackson |
👍 Thanks for the quick turnaround on this, @ljharb |
Using v1.4.0, I'm seeing a few false positives in Safari 7-8 and IE 9-11. In the
tmp
branch of expect I pushed a commit that demonstrates the problem. You can see the failed build here.Basically, in these environments, I'm seeing the following:
However, both of these values are (correctly)
false
in Chrome 39 and Firefox 32.The text was updated successfully, but these errors were encountered: