Page MenuHomePhabricator

Use dot notation in some places
ClosedPublic

Authored by joshuaspence on Jan 20 2015, 10:17 AM.
Tags
None
Referenced Files
F14013350: D11442.id.diff
Sat, Nov 2, 4:18 AM
F14013349: D11442.id27781.diff
Sat, Nov 2, 4:18 AM
F14013345: D11442.id27774.diff
Sat, Nov 2, 4:18 AM
F14013344: D11442.id27703.diff
Sat, Nov 2, 4:18 AM
F14013343: D11442.id27494.diff
Sat, Nov 2, 4:18 AM
F14011028: D11442.diff
Thu, Oct 31, 3:52 PM
Unknown Object (File)
Sep 19 2024, 9:41 PM
Unknown Object (File)
Sep 17 2024, 7:43 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rPdd81268a8e4f: Use dot notation in some places
Summary

Use x.y in favor of x['y'] in some JavaScript callsites. Note that there are a bunch of places where the latter is explicitly used to trick PhabricatorJavelinLinter.

Test Plan

arc lint

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4123
Build 4136: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Enable the `sub` option for JSHint.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.
joshuaspence updated this object.
epriestley edited edge metadata.

The JX.* stuff is supposedly evading symbol stuff, but if it's not firing you can just land this.

I think T1549 is the real fix for this kind of issue anyway (i.e., annotate explicitly with a comment), not "trick the static analyzer".

Maybe remove the comments about evading static analysis, though.

webroot/rsrc/externals/javelin/core/Event.js
226–227 ↗(On Diff #27703)

My expectation is that this will mask a different lint error ("file does not declare dependency on JX.Stratcom, but uses symbol"). Not sure why that's not firing.

webroot/rsrc/externals/javelin/core/init.js
60–61

As above.

webroot/rsrc/externals/javelin/ext/reactor/core/Reactor.js
85–86 ↗(On Diff #27703)

These might be trying to "weak bind" to avoid a circular dependency.

This revision is now accepted and ready to land.Jan 27 2015, 2:30 PM

Oh right, I don't have the javelin binary setup.

joshuaspence edited edge metadata.

Revert a bunch of stuff

joshuaspence retitled this revision from Enable the `sub` option for JSHint to Use dot notation in some places.
joshuaspence updated this object.
joshuaspence edited edge metadata.

I've wound this back a lot.

epriestley edited edge metadata.

Cool, these are unambiguous.

This revision is now accepted and ready to land.Jan 28 2015, 8:41 PM
This revision was automatically updated to reflect the committed changes.