Page MenuHomePhabricator

Switch back to janky array copying
ClosedPublic

Authored by sophiebits on Apr 9 2014, 12:57 AM.
Tags
None
Referenced Files
F13141900: D8728.diff
Fri, May 3, 5:20 AM
Unknown Object (File)
Mon, Apr 29, 4:05 PM
Unknown Object (File)
Sun, Apr 28, 9:35 PM
Unknown Object (File)
Wed, Apr 24, 10:30 PM
Unknown Object (File)
Sat, Apr 20, 6:45 PM
Unknown Object (File)
Thu, Apr 11, 9:09 AM
Unknown Object (File)
Apr 3 2024, 10:59 AM
Unknown Object (File)
Mar 30 2024, 11:33 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
Branch
jxa
Lint
Lint Passed
Unit
No Test Coverage

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.