paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

String#includes should throw error on regexp #349

Closed zloirock closed 9 years ago

zloirock commented 9 years ago
'/./'.includes(/./); // => true, should be TypeError

21.1.3.7, step 6