jshint/jshint

'freeze' doesn't protect ES6 native objects

Open

#2859 aperta il 31 gen 2016

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (1757 fork)batch import
good first issue

Metriche repository

Star
 (8937 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

// jshint freeze: true, esversion: 6
Array.prototype.foo = 2;
Map.prototype.foo = 2;

Expected: two Extending prototype of native object warings. Actual: only Extending prototype of native object: 'Array' at line 2

Guida contributor