Page MenuHomePhabricator

Use dot notation in some places
ClosedPublic

Authored by joshuaspence on Jan 20 2015, 10:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 9:51 PM
Unknown Object (File)
Sun, Dec 8, 7:09 PM
Unknown Object (File)
Thu, Dec 5, 4:39 AM
Unknown Object (File)
Tue, Dec 3, 12:57 PM
Unknown Object (File)
Nov 14 2024, 5:23 AM
Unknown Object (File)
Nov 14 2024, 4:33 AM
Unknown Object (File)
Nov 13 2024, 10:22 AM
Unknown Object (File)
Nov 13 2024, 4:54 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 3927
Build 3940: [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

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–87

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.