Page MenuHomePhabricator

Switch back to janky array copying
ClosedPublic

Authored by sophiebits on Apr 9 2014, 12:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 9:09 AM
Unknown Object (File)
Wed, Apr 3, 10:59 AM
Unknown Object (File)
Sat, Mar 30, 11:33 AM
Unknown Object (File)
Mar 10 2024, 5:49 AM
Unknown Object (File)
Feb 15 2024, 3:45 PM
Unknown Object (File)
Feb 9 2024, 9:02 PM
Unknown Object (File)
Feb 9 2024, 2:13 PM
Unknown Object (File)
Feb 9 2024, 6:39 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP597c6c07f712: Switch back to janky array copying
Summary

Bad news @cpojer @tomo. IE8 doesn't like you.

Test Plan

Load a diff in IE8; see changes and don't get JS errors.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sophiebits retitled this revision from to Switch back to janky array copying.
sophiebits updated this object.
sophiebits edited the test plan for this revision. (Show Details)
sophiebits added a reviewer: epriestley.
sophiebits added subscribers: cpojer, tomo.
epriestley edited edge metadata.

hahahahaha

oh well, we can do this again in 6 years once IE8 is deprecated

webroot/rsrc/externals/javelin/core/util.js
57โ€“61

Let's just do this one unconditionally? I'd rather have simpler code than the presumably-trivial performance gains of invoking slice.

This revision now requires changes to proceed.Apr 9 2014, 1:00 AM

(Facebook's toArray corroborates this story: https://github.com/facebook/react/blob/master/src/vendor/core/toArray.js says "IE < 9 does not support Array#slice on collections objects".)

webroot/rsrc/externals/javelin/core/util.js
57โ€“61

Sure.

Oh, one thought: if we force edge compatibility mode, maybe that fixes this?

sophiebits edited edge metadata.

Consistent clowny copying

sophiebits edited edge metadata.

Make it actually work and test it

This revision is now accepted and ready to land.Apr 9 2014, 1:07 AM
epriestley updated this revision to Diff 20699.

Closed by commit rP597c6c07f712 (authored by @spicyj, committed by @epriestley).

Are these actual ie8 browsers? (We should force edge anyways)

I tested it with a real, live IE8 browser in "IE8 Standards" mode.