Page MenuHomePhabricator

Use dot notation in some places
ClosedPublic

Authored by joshuaspence on Jan 20 2015, 10:17 AM.
Tags
None
Referenced Files
F13817032: D11442.diff
Thu, Sep 19, 9:41 PM
Unknown Object (File)
Tue, Sep 17, 7:43 AM
Unknown Object (File)
Thu, Sep 12, 6:40 AM
Unknown Object (File)
Thu, Sep 12, 6:40 AM
Unknown Object (File)
Thu, Sep 12, 6:40 AM
Unknown Object (File)
Thu, Sep 5, 11:00 AM
Unknown Object (File)
Sat, Aug 31, 5:46 PM
Unknown Object (File)
Sat, Aug 31, 12:29 PM
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.