HomePhorge

Enable the `freeze` option for JSHint

Description

Enable the freeze option for JSHint

Summary:
This option prohibits overwriting prototypes of native objects such as Array, Date and so on.

// jshint freeze:true
Array.prototype.count = function (value) { return 4; };
// -> Warning: Extending prototype of native object: 'Array'.

Test Plan: Linted existing JavaScript files, found no violations.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11439

Details

Provenance
Joshua SpenceAuthored on Jan 20 2015, 2:25 AM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rP02eca684ae8c: Add a call to predict the next event for a trigger
Branches
Unknown
Tags
Unknown

Event Timeline