-
-
Notifications
You must be signed in to change notification settings - Fork 894
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
handle no deleteCount
to splice()
in Opera
#465
Conversation
In Opera 10.6 and 9.8, when the fix is applied and `deleteCount` is missing, no elements are deleted. This is incorrect - when `deleteCount` is missing the behavior should be to delete all elements from `start` onwards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which version(s) of Opera? If there's not already failing tests, can we add some?
I can find out the version on Monday when I have access to the device again. How should I test this? We need to force adding the implementation, which I didn't see done anywhere else FYI I opened a related PR on typescript here: microsoft/TypeScript#32643 |
I mean we want a test that tests Lines 819 to 880 in e11b3f7
But that code only executes based on some of the other conditions |
It's Opera 9.8 |
@tjenkinson thanks! As for a test, anything that invokes |
But it would only test the change on something that has one of these issues right? Line 881 in e11b3f7
Would the tests run on a browser old enough to have these issues? |
CI won't, but I can manually run them against that version of Opera :-) |
es5-shim/tests/spec/s-array.js Lines 1364 to 1370 in e11b3f7
:D |
hi @ljharb any chance this could be merged soon? |
Hmm, looks like the oldest Opera I can test in is 10.6, but the test seems to fail there. |
It seems tho, like your fix ends up causing 2 additional failures that weren't there before. |
:/ Which tests failed for you? |
|
@tjenkinson i know it's been awhile, but is there any chance you're interested in completing this PR? |
@ljharb I am, but I'm not sure when I'm going to get time at the moment. Will close for now and maybe reopen later |
I'd rather keep it open in the meantime so I can track it :-) please return to it when you get time. |
@ljharb I am seeing a lot of failures like this, even on master
any idea why? |
In Opera specifically? Which version, I can probably fix those. |
This is just from running |
On which node version? travis-ci passes on a great many node versions: https://travis-ci.com/es-shims/es5-shim/builds/143354113 |
|
https://travis-ci.com/es-shims/es5-shim/jobs/272983149 passes, i'll try locally. |
Weird. I wonder if it's related to my timezone somehow? I'm |
interesting, i see those failures locally too, and i'm in UTC-7 |
Ah when I change my timezone to London I get |
hopefully with the last few commits the tests will be fixed now 🤞 |
It appears that old v8, old spidermonkey, jsc, and xs all print out |
Are you referring to the date test or splice? |
The date test :-) i'll take a look at your splice changes soon. |
bump! |
OK, with your test but without your fix, Opera 10.6 has 10 failures; with your fix, it has 8, none of which are related to splice. Let's get this in :-) |
21d6d82
to
f0dd919
Compare
🎉 thanks |
In Opera 10.6 and 9.8, when the fix is applied and
deleteCount
is missing, no elements are deleted.This is incorrect - when
deleteCount
is missing the behavior should be to delete all elements fromstart
onwards