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'.
Differential D11439
Enable the `freeze` option for JSHint joshuaspence on Jan 20 2015, 7:40 AM. Authored by Tags None Referenced Files
Subscribers
Details
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'. Linted existing JavaScript files, found no violations.
Diff Detail
|